ScummVM API documentation
Neverhood::AnimResource Class Reference

Public Member Functions

 AnimResource (NeverhoodEngine *vm)
 
void draw (uint frameIndex, Graphics::Surface *destSurface, bool flipX, bool flipY)
 
bool load (uint32 fileHash)
 
void unload ()
 
void clear ()
 
uint getFrameCount () const
 
const AnimFrameInfogetFrameInfo (int16 index) const
 
int16 getFrameIndex (uint32 frameHash)
 
void setReplEnabled (bool value)
 
void setRepl (byte oldColor, byte newColor)
 
NDimensions loadSpriteDimensions (uint32 fileHash)
 

Protected Attributes

NeverhoodEngine_vm
 
ResourceHandle _resourceHandle
 
int16 _width
 
int16 _height
 
const byte * _currSpriteData
 
uint32 _fileHash
 
const byte * _paletteData
 
const byte * _spriteData
 
bool _replEnabled
 
byte _replOldColor
 
byte _replNewColor
 
Common::Array< AnimFrameInfo_frames
 

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