Cubios::Gfx::SpriteAtlasElement
Constructors
SpriteAtlasElement
Summary
Constructs an sprite atlas element object
Arguments
- host - pointer to an instance of SpriteAtlas class to which the element will be added
- rc - rectangular area on the source texture that will be cut out and added as a sprite
Synopsis
Cubios::Gfx::SpriteAtlasElement
CPPWrapped for easier reading. Turn wrap off to inspect exact line lengths.
Public Methods
Rect
Output
Returns a pointer to an object containing rectangular area on the source texture that is used as a sprite
Synopsis
Cubios::Gfx::SpriteAtlasElement
CPPWrapped for easier reading. Turn wrap off to inspect exact line lengths.
Virtual Methods
Render
Summary
Implements sprite atlas element rendering
Output
Returns true if function call succeeds, otherwise false.
Synopsis
Cubios::Gfx::SpriteAtlasElement
CPPWrapped for easier reading. Turn wrap off to inspect exact line lengths.
Copy
Summary
Creates a copy of the sprite atlas element
Arguments
- id - new sprite identifier
- rc - rectangular area on the source texture that will be cut out and added as a sprite
Output
Returns a pointer to the copied object.
Synopsis
Cubios::Gfx::SpriteAtlasElement
CPPWrapped for easier reading. Turn wrap off to inspect exact line lengths.