0.44.0
|
#include <iSprite.h>
Inherits igor::iResource.
Classes | |
struct | iFrame |
Public Member Functions | |
uint32 | getFrameCount () const |
const iFrame & | getFrame (uint32 index) const |
const iTexturePtr & | getTexture () const |
void | setTexture (iTexturePtr texture) |
Public Member Functions inherited from igor::iResource | |
virtual | ~iResource ()=default |
bool | isValid () const |
bool | isProcessed () const |
bool | isQuiet () const |
const iaString & | getSource () const |
const iaString | getInfo () const |
const iResourceID & | getID () const |
const iaString & | getAlias () const |
iResourceCacheMode | getCacheMode () const |
const iParameters & | getParameters () const |
const iaString & | getType () const |
Friends | |
class | iSpriteFactory |
Additional Inherited Members | |
Static Public Member Functions inherited from igor::iResource | |
static bool | extractID (const iParameters ¶meters, iResourceID &id, bool quiet=false) |
Protected Member Functions inherited from igor::iResource | |
iResource (const iParameters ¶meters) | |
used to have 2d sprites
const iSprite::iFrame & igor::iSprite::getFrame | ( | uint32 | index | ) | const |
returns frame for given index
no range check!
index | the frame index to return |
uint32 igor::iSprite::getFrameCount | ( | ) | const |
const iTexturePtr & igor::iSprite::getTexture | ( | ) | const |
void igor::iSprite::setTexture | ( | iTexturePtr | texture | ) |
sets the texture of this sprite
|
friend |