ScummVM API documentation
Asylum::GraphicResource Class Reference

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)
 
GraphicFramegetFrame (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)
 

Member Function Documentation

◆ copyFrameToDest()

void Asylum::GraphicResource::copyFrameToDest ( byte *  dest,
uint32  frame 
)

Copies an animation frame to the target buffer

◆ copySpriteToDest()

void Asylum::GraphicResource::copySpriteToDest ( byte *  dest,
uint32  frame 
)

Copies a sprite to the target buffer, with transparency


The documentation for this class was generated from the following file: