Pictel 2d 0.1
Game Engine Documentation
|
Public Member Functions | |
SpriteRepresentationI (int scale) | |
virtual void | DrawAt (int x, int y)=0 |
virtual void | Draw ()=0 |
float | GetScale () |
void | SetScale (float x) |
void | SetPosition (Vector2 pos) |
Vector2 & | GetPosition () |
void | SetZPosition (float zPos) |
float & | GetZPosition () |
void | SetAlpha (float val) |
float | GetAlpha () |
void | SetRotation (Rotation rotation) |
Rotation & | GetRotation () |
void | SetAcceptsLight (bool val) |
float | GetAcceptsLight () |
void | SetColorMod (Color4 val) |
Color4 | GetColorMod () |
auto & | GetIsDrawable () |
auto & | GetType () |
void | SetDrawable (std::unique_ptr< DrawableSpriteI > val) |
DrawableSpriteI * | GetDrawable () |
![]() | |
auto * | animator () |
Protected Attributes | |
int | m_scale |
Vector2 | m_position |
float | m_zPosition |
Rotation | m_rotation |
bool | m_acceptsLight |
SpriteDrawType | m_type |
Color4 | m_colorMod |
bool | m_isDrawable |
std::unique_ptr< DrawableSpriteI > | m_drawable |
![]() | |
PropertyManupulator * | m_propertyAnimator |
|
pure virtual |
Draws the sprite at the stored coorindates that were previously set.
|
pure virtual |
Draws the sprite at a given coordinates.
|
inlinevirtual |
Implements engine::SpritePropertyManipulatorsI.
|
inlinevirtual |
Implements engine::SpritePropertiesI.
|
inlinevirtual |
Implements engine::SpritePropertyManipulatorsI.
|
inline |
The main drawable for this sprite
|
inline |
Controls wheather this sprite is drawable at all. Default is yes.
|
inlinevirtual |
Implements engine::SpritePropertiesI.
|
inlinevirtual |
Implements engine::SpritePropertiesI.
|
inlinevirtual |
Implements engine::SpritePropertiesI.
|
inline |
Controls the sprite type. Default is SPRITE_DRAW_TYPE_FOREGROUND
|
inlinevirtual |
Control whether the object receives lights or not. If false it's completely lit up.
Implements engine::SpritePropertyManipulatorsI.
|
inlinevirtual |
Implements engine::SpritePropertiesI.
|
inlinevirtual |
Set the color mod
Implements engine::SpritePropertyManipulatorsI.
|
inline |
Set the main drawable for this sprite
|
inlinevirtual |
Implements engine::SpritePropertiesI.
|
inlinevirtual |
Implements engine::SpritePropertiesI.
|
inlinevirtual |
Implements engine::SpritePropertiesI.
|
inlinevirtual |
Implements engine::SpritePropertiesI.