|
Pictel 2d 0.1
Game Engine Documentation
|
Public Member Functions | |
| virtual void | SetText (std::string)=0 |
| virtual void | SetShadowColor (Color4)=0 |
| virtual void | SetShadowOffset (OriginF)=0 |
| virtual void | SetLineHeightMultiplier (float)=0 |
| virtual void | SetHorizontalAlignment (std::string)=0 |
| virtual void | SetVerticalAlignment (std::string)=0 |
Public Member Functions inherited from engine::SpriteRepresentationI | |
| 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 () |
Public Member Functions inherited from engine::AnimatablePropertiesI | |
| auto * | animator () |
Additional Inherited Members | |
Protected Attributes inherited from engine::SpriteRepresentationI | |
| 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 |
Protected Attributes inherited from engine::AnimatablePropertiesI | |
| PropertyManupulator * | m_propertyAnimator |
|
pure virtual |
Set the horizontal alignment. "left"|"center"|"right"
|
pure virtual |
Set the line multiplier. Default is 1.f and is based on what was initially defined in the .fnt file
|
pure virtual |
Shadow color. If alpha is <= 0 shadow is disabled. Default is clear color.
|
pure virtual |
Set shadow offset. Default is { 1, 1 }
|
pure virtual |
Text
|
pure virtual |
Set the vertical alignment. "top"|"middle"|"bottom"