Text2D.h
Spcifies space to be determined by the actual character extents only. This is at times useful...
void SetTextColor(int charBegin, int charEnd, const Color &color)
Sets the character indices to be the colors specified. This setting persists across strings...
RenderMode mode
The visual mode for rendered vertices.
Definition: Render2D.h:59
Definition: AssetID.h:37
Attempts to produce the most natural spacing between text by taking into account any special characte...
Space among characters is distributed uniformly regardless of input text. This is typically preferred...
void OnDraw()
Function that is called upon each Draw iteration. Component Draw()s are run before the entity's draw ...
Vector GetDimensions()
Returns the bounding box dimensions of the rendered text in pixels.
std::string GetInfo()
Returns a string containing human-readable information on the state of the component.
Assets are referred to by an AssetID. The AssetID uniquely refers to an Asset stored within memory...
Definition: AssetID.h:42
void SetSpacingMode(SpacingMode mode)
Sets the mode to render text against when drawn.
Vector GetCharPosition(int i)
Returns the pixel position of the i'th character in the stored string.
SpacingMode
The mode by which text should be rendered.
Definition: Text2D.h:68