|
virtual dcpp::nub::array< dcpp::nub::recti > & | getPositions ()=0 |
| Returns the list of rectangles held by the sprite bank.
|
|
virtual dcpp::nub::array< SGUISprite > & | getSprites ()=0 |
| Returns the array of animated sprites within the sprite bank.
|
|
virtual dcpp::uint32_kt | getTextureCount () const =0 |
| Returns the number of textures held by the sprite bank.
|
|
virtual dcpp::video::ITexture * | getTexture (dcpp::uint32_kt index) const =0 |
| Gets the texture with the specified index.
|
|
virtual void | addTexture (dcpp::video::ITexture *texture)=0 |
| Adds a texture to the sprite bank.
|
|
virtual void | setTexture (dcpp::uint32_kt index, dcpp::video::ITexture *texture)=0 |
| Changes one of the textures in the sprite bank.
|
|
virtual dcpp::int32_kt | addTextureAsSprite (dcpp::video::ITexture *texture)=0 |
| Add the texture and use it for a single non-animated sprite.
|
|
virtual void | clear ()=0 |
| Clears sprites, rectangles and textures.
|
|
virtual void | draw2DSprite (dcpp::uint32_kt index, const dcpp::nub::position2di &pos, const dcpp::nub::recti *clip=0, const dcpp::video::SColor &color=dcpp::video::SColor(255, 255, 255, 255), dcpp::uint32_kt starttime=0, dcpp::uint32_kt currenttime=0, bool loop=true, bool center=false)=0 |
| Draws a sprite in 2d with position and color.
|
|
virtual void | draw2DSprite (dcpp::uint32_kt index, const dcpp::nub::recti &destRect, const dcpp::nub::recti *clip=0, const dcpp::video::SColor *const colors=0, dcpp::uint32_kt timeTicks=0, bool loop=true)=0 |
| Draws a sprite in 2d with destination rectangle and colors.
|
|
virtual void | draw2DSpriteBatch (const dcpp::nub::array< dcpp::uint32_kt > &indices, const dcpp::nub::array< dcpp::nub::position2di > &pos, const dcpp::nub::recti *clip=0, const dcpp::video::SColor &color=dcpp::video::SColor(255, 255, 255, 255), dcpp::uint32_kt starttime=0, dcpp::uint32_kt currenttime=0, bool loop=true, bool center=false)=0 |
| Draws a sprite batch in 2d using an array of positions and a color.
|
|
| IReferenceCounted () |
| Constructor.
|
|
virtual | ~IReferenceCounted () |
| Destructor.
|
|
void | grab () const |
| Grabs the object. Increments the reference counter by one.
|
|
bool | drop () const |
| Drops the object. Decrements the reference counter by one.
|
|
dcpp::int32_kt | getReferenceCount () const |
| Get the reference count.
|
|
const dcpp::char_kt * | getDebugName () const |
| Returns the debug name of the object.
|
|
Sprite bank interface.
See http://irrlicht.sourceforge.net/forum//viewtopic.php?f=9&t=25742 for more information how to use the spritebank.