Class TextUIComponent

Inheritance Relationships

Base Type

Class Documentation

class TextUIComponent : public RenderUIComponent

Component to render 2D UI Text.

Public Types

enum Mode

DirectXTK flipping modes for sprites.

Values:

None = DirectX::SpriteEffects_None
FlipX = DirectX::SpriteEffects_FlipHorizontally
FlipY = DirectX::SpriteEffects_FlipVertically
FlipXY = DirectX::SpriteEffects_FlipBoth

Public Functions

TextUIComponent(Entity &owner, const JSON::json &data)
~TextUIComponent()
void setFont(Ref<FontResourceFile> fontFile)
void setText(const String &text)
void render()
JSON::json getJSON() const

Get JSON representation of the component data needed to re-construct component from memory.

void draw()

Expose the component data with ImGui.