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 AnimFrameInfo & | getFrameInfo (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 |