![]() |
Incremental Engine
1.0.6
A 2D Game Engine to create Idle Games
|
#include <Text.h>
Public Types | |
| enum | FontAlignment { TOP_LEFT = FW1_TOP | FW1_LEFT, TOP_CENTER = FW1_TOP | FW1_CENTER, TOP_RIGHT = FW1_TOP | FW1_RIGHT, CENTER_LEFT = FW1_VCENTER | FW1_LEFT, CENTER = FW1_VCENTER | FW1_CENTER, CENTER_RIGHT = FW1_VCENTER | FW1_RIGHT, BOTTOM_LEFT = FW1_BOTTOM | FW1_LEFT, BOTTOM_CENTER = FW1_BOTTOM | FW1_CENTER, BOTTOM_RIGHT = FW1_BOTTOM | FW1_RIGHT } |
Public Member Functions | |
| Text () | |
| ~Text () override | |
| virtual void | Init () override |
| void | SetFont (const std::wstring &fontFamily) |
| void | SetFontSize (float fontSize) |
| void | SetFontAlignment (FontAlignment alignment) |
| void | SetText (const std::wstring &value) |
| void | ClearText () |
| void | SetTextColor (const float r, const float g, const float b, const float a=1) |
| void | SetTextColor (const D3DXVECTOR4 color) |
| void | SetTextColor (const std::uint32_t color) |
| virtual FloatRect | GetLocalBounds () override |
| virtual void | Update (float dt) override |
| virtual HRESULT | Draw (ID3D11DeviceContext *deviceContext) override |
Public Member Functions inherited from IncrementalEngine::Actor | |
| virtual | ~Actor () |
| void | UpdateRecursive (float dt) |
| HRESULT | DrawRecursive (ID3D11DeviceContext *deviceContext) |
| FloatRect | GetGlobalBounds () |
| void | Center () |
| const Transform | GetWorldTransform () |
| const D3DXVECTOR2 | GetWorldPosition () |
| const D3DXVECTOR2 | GetWorldScale () |
| const float | GetWorldRotation () |
| void | SetWorldPosition (D3DXVECTOR2 value) |
| virtual void | SetPosition (float x, float y) override |
| virtual void | SetPosition (const D3DXVECTOR2 &position) override |
| virtual const D3DXVECTOR2 & | GetPosition () const override |
| Actor * | GetParent () const |
| virtual void | SetParent (Actor *value, const bool fixWorldPosition=true) |
| void | SetActive (bool active) |
| bool | IsActive () |
Public Member Functions inherited from IncrementalEngine::Transformable | |
| Transformable () | |
| virtual void | SetScale (float factorX, float factorY) |
| virtual void | SetScale (const D3DXVECTOR2 &factors) |
| virtual void | SetOrigin (float x, float y) |
| virtual void | SetOrigin (const D3DXVECTOR2 &origin) |
| virtual void | SetRotation (float angle) |
| virtual float | GetRotation () const |
| virtual const D3DXVECTOR2 & | GetScale () const |
| virtual const D3DXVECTOR2 & | GetOrigin () const |
| void | Move (float offsetX, float offsetY) |
| void | Move (const D3DXVECTOR2 &offset) |
| void | Rotate (float angle) |
| void | Scale (float factorX, float factorY) |
| void | Scale (const D3DXVECTOR2 &factor) |
| const Transform & | GetTransform () const |
| const Transform & | GetInverseTransform () const |
Private Member Functions | |
| D3DXVECTOR2 | GetTextExtent () |
| XMMATRIX | GetWorldMatrix (Actor *actor) |
Private Attributes | |
| IFW1FontWrapper * | _fontWrapper |
| XMMATRIX | _fontWrapperMatrix |
| std::wstring | _value |
| std::wstring | _fontFamily |
| float | _fontSize |
| std::uint32_t | _color |
| UINT | _flags |
| bool | _fontWrapperNeedUpdate |
| Transform | _previousTransform |
Additional Inherited Members | |
Protected Member Functions inherited from IncrementalEngine::Drawable | |
| void | CopyParameters (Drawable *drawable) |
Protected Attributes inherited from IncrementalEngine::Transformable | |
| bool | _transformNeedUpdate |
Protected Attributes inherited from IncrementalEngine::Drawable | |
| RenderWindow * | _renderWindow |
| ShaderManager * | _shaderManager |
| ID3D11Device * | _device |
|
override |
| void IncrementalEngine::Text::ClearText | ( | ) |
|
overridevirtual |
|
overridevirtual |
|
private |
|
private |
|
overridevirtual |
| void IncrementalEngine::Text::SetFont | ( | const std::wstring & | fontFamily | ) |
| void IncrementalEngine::Text::SetFontAlignment | ( | FontAlignment | alignment | ) |
| void IncrementalEngine::Text::SetFontSize | ( | float | fontSize | ) |
| void IncrementalEngine::Text::SetText | ( | const std::wstring & | value | ) |
| void IncrementalEngine::Text::SetTextColor | ( | const D3DXVECTOR4 | color | ) |
| void IncrementalEngine::Text::SetTextColor | ( | const float | r, |
| const float | g, | ||
| const float | b, | ||
| const float | a = 1 |
||
| ) |
| void IncrementalEngine::Text::SetTextColor | ( | const std::uint32_t | color | ) |
|
overridevirtual |
|
private |
|
mutableprivate |