Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CRenderTextData Class Reference

Public Types

enum  EPositionType { Billboard , Text2D }
enum  EVerticalAlign { Top , Middle , Bottom }
enum  EHorizontalAlign { Left , Center , Right }

Public Member Functions

void init ()
void setText (IFont *font, const char *text)
void setText (IFont *font, const wchar_t *text)
void setText (const char *text)
void setText (const wchar_t *text)
std::vector< std::vector< SModuleOffset * > > & getModules ()
float getTextHeight ()
float getLinePadding ()
void setLinePadding (float p)
float getSpacePadding ()
void setSpacePadding (float p)
float getTextOffsetY ()

Public Attributes

EPositionType Type
core::vector3df Position
SColor Color
int ShaderID
CMaterialMaterial
bool Visible
core::matrix4 Transform
EVerticalAlign VAlign
EHorizontalAlign HAlign
void * UserData
std::function< void(CRenderTextData *)> UpdateTransformCallback

Protected Attributes

std::wstring m_text
IFontm_font
std::vector< std::vector< SModuleOffset * > > m_arrayCharRender
float m_textHeight
float m_textOffsetY
float m_linePadding
float m_spacePadding

The documentation for this class was generated from the following file: