4#ifndef TRAM_SDK_RENDER_SPRITE_H
5#define TRAM_SDK_RENDER_SPRITE_H
Definition: material.h:32
void SetMaterial(Material *mat)
Definition: sprite.h:28
void LoadFromDisk()
Definition: sprite.cpp:41
void Unload()
Definition: sprite.h:33
void LoadFromMemory()
Definition: sprite.cpp:36
const std::vector< SpriteFrame > & GetFrames()
Definition: sprite.h:35
static Sprite * Find(name_t name)
Definition: sprite.cpp:24
Material * GetMaterial() const
Definition: sprite.h:27
Material * material
Definition: sprite.h:40
std::vector< SpriteFrame > frames
Definition: sprite.h:39
Sprite(UID name)
Definition: sprite.h:26
Definition: resource.h:12
name_t name
Definition: resource.h:38
uint16_t border_v
Definition: sprite.h:21
uint16_t height
Definition: sprite.h:17
uint16_t offset_y
Definition: sprite.h:15
uint16_t midpoint_y
Definition: sprite.h:19
uint16_t offset_x
Definition: sprite.h:14
uint16_t border_h
Definition: sprite.h:20
uint16_t width
Definition: sprite.h:16
uint16_t midpoint_x
Definition: sprite.h:18