shared_ptr< CFont > m_Font
void PrintfAt(float x, float y, const wchar_t *fmt,...)
Print formatted text at (x,y) under the current transform.
void Translate(float x, float y, float z)
void Render()
Render all of the previously printed text calls.
void PutAdvance(const wchar_t *buf)
Print text at (0,0) under the current transform, and advance the transform by the width of the text...
CTextRenderer(const CShaderProgramPtr &shader)
CShaderProgramPtr m_Shader
void Put(float x, float y, const wchar_t *buf)
Print text at (x,y) under the current transform, and advance the transform by the width of the text...
void Color(const CColor &color)
Set the color for subsequent print calls.
void PrintfAdvance(const wchar_t *fmt,...)
Print formatted text at (0,0) under the current transform, and advance the transform by the width of ...
void ResetTransform()
Reset the text transform to the default, with (0,0) in the top-left of the screen.
std::vector< SBatch > m_Batches
void SetTransform(const CMatrix3D &transform)
void Font(const CStrW &font)
Set the font for subsequent print calls.
std::map< CStrW, shared_ptr< CFont > > m_Fonts