igor::iSprite Class Reference

#include <iSprite.h>

Inherits igor::iResource.

Classes

struct  iFrame
 

Public Member Functions

uint32 getFrameCount () const
 
const iFramegetFrame (uint32 index) const
 
const iTexturePtrgetTexture () 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 iaStringgetSource () const
 
const iaString getInfo () const
 
const iResourceIDgetID () const
 
const iaStringgetAlias () const
 
iResourceCacheMode getCacheMode () const
 
const iParametersgetParameters () const
 
const iaStringgetType () const
 

Friends

class iSpriteFactory
 

Additional Inherited Members

- Static Public Member Functions inherited from igor::iResource
static bool extractID (const iParameters &parameters, iResourceID &id, bool quiet=false)
 
- Protected Member Functions inherited from igor::iResource
 iResource (const iParameters &parameters)
 

Detailed Description

used to have 2d sprites

Member Function Documentation

◆ getFrame()

const iSprite::iFrame & igor::iSprite::getFrame ( uint32  index) const

returns frame for given index

no range check!

Parameters
indexthe frame index to return
Returns
the specified frame

◆ getFrameCount()

uint32 igor::iSprite::getFrameCount ( ) const
Returns
the amount of frames

◆ getTexture()

const iTexturePtr & igor::iSprite::getTexture ( ) const
Returns
texture

◆ setTexture()

void igor::iSprite::setTexture ( iTexturePtr  texture)

sets the texture of this sprite

Friends And Related Function Documentation

◆ iSpriteFactory

friend class iSpriteFactory
friend

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