Classes | |
struct | ResourceData |
Public Member Functions | |
GraphicResource (AsylumEngine *engine) | |
GraphicResource (AsylumEngine *engine, ResourceId id) | |
bool | load (ResourceId id) |
void | copyFrameToDest (byte *dest, uint32 frame) |
void | copySpriteToDest (byte *dest, uint32 frame) |
GraphicFrame * | getFrame (uint32 frame) |
ResourceId | getResourceId () |
uint32 | count () |
ResourceData | getData () |
Static Public Member Functions | |
static uint32 | getFrameCount (AsylumEngine *engine, ResourceId id) |
static Common::Rect | getFrameRect (AsylumEngine *engine, ResourceId id, uint32 index) |
void Asylum::GraphicResource::copyFrameToDest | ( | byte * | dest, |
uint32 | frame | ||
) |
Copies an animation frame to the target buffer
void Asylum::GraphicResource::copySpriteToDest | ( | byte * | dest, |
uint32 | frame | ||
) |
Copies a sprite to the target buffer, with transparency