Pictel 2d 0.1
Game Engine Documentation
|
Public Member Functions | |
DrawableSpriteI (SpriteAtlasItemI *atlasItem) | |
virtual bool | CanDraw ()=0 |
void | SetSpriteAtlasItem (SpriteAtlasItemI *value) |
SpriteAtlasItemI * | GetSpriteAtlasItem () |
![]() | |
DrawableI (float width, float height) | |
virtual void | SetScale (float val) |
virtual float * | GetScale () |
virtual void | SetZPosition (float value) |
virtual void | SetAlpha (float val) |
virtual float * | GetAlpha () |
virtual void | SetColorMod (Color4 mod) |
virtual Color4 & | GetColorMod () |
virtual void | SetRotation (float, float, float)=0 |
virtual void | GetRotation (float *, float *, float *)=0 |
virtual void | SetRotateable (bool)=0 |
virtual void | SetTexture (TextureI *texture) |
virtual TextureI * | GetTexture () |
virtual bool | IsFlippedHorizontally () |
virtual void | SetFlippedHorizontally (bool value) |
virtual Rect & | GetTextureRect () |
virtual bool & | GetAcceptsLight () |
Protected Attributes | |
SpriteAtlasItemI * | m_atlasItem |
![]() | |
TextureI * | m_texture |
Rect | m_textureRect |
Color4 | m_colorMod |
float | m_flipHorizontal |
float | m_scale |
float | m_alpha |
float | m_zPos |
bool | m_flippedHorizontally |
bool | m_acceptsLight |
bool | m_rotatable |
Declares an abstract interface dealing with a drawable for a sprite that exists as {x, y, width, height} component from the loaded sprite atlas.
|
pure virtual |
Can the drawable be presented. Override
Reimplemented from engine::DrawableI.
|
inline |
Retrieve the sprite atlas
|
inline |
Set the sprite atlas item. Cannot be nil