6 #include "IWorldTextRenderer.h"
9 #include "TextRendererStateComponent.h"
10 #include "BatchedTextRenderable.h"
24 bool enableSupersampling);
34 m_pTextRendererStateComponent->SetFontInstance(pFontInstance);
37 void SetDefaultState();
39 void SetTextSize(
float pixelHeight)
41 m_pTextRendererStateComponent->SetTextSize(pixelHeight);
44 void SetGlyphColor(
const v4& color)
46 m_pTextRendererStateComponent->SetGlyphColor(color);
49 void SetOutlineColor(
const v4& color)
51 m_pTextRendererStateComponent->SetOutlineColor(color);
54 void SetHaloStyle(
const v4& color,
float haloWidth,
float haloHardness)
56 m_pTextRendererStateComponent->SetHaloStyle(color, haloWidth, haloHardness);
59 void SetTransform(
const v2& translate,
const v2& rotate,
const v2& scale)
61 m_pTextRendererStateComponent->SetTransform(translate, rotate, scale);
64 void SetDepthTest(
bool depthTest)
66 m_pTextRendererStateComponent->SetDepthTest(depthTest);
69 void SetStencilTest(
bool stencilTest)
71 m_pTextRendererStateComponent->SetStencilTest(stencilTest);
74 void SetStencilFunc(GLenum stencilFunc,
int stencilRef, u32 stencilMask)
76 m_pTextRendererStateComponent->SetStencilFunc(stencilFunc, stencilRef, stencilMask);
79 void SetStencilMaskedStyle(
bool enable, GLenum stencilFunc,
const v4& glyphColor,
const v4& haloColor)
81 m_pTextRendererStateComponent->SetStencilMaskedStyle(enable, stencilFunc, glyphColor, haloColor);
84 void SetRenderLayer(Rendering::LayerIds::Values layer,
int subLayer)
86 m_pTextRendererStateComponent->SetRenderLayer(layer, subLayer);
89 void SetAlpha(
float alpha)
91 m_pTextRendererStateComponent->SetAlpha(alpha);
94 void SetModelToWorldTransform(
const m44& transform)
96 m_modelToWorldTransform = transform;
99 void DrawShapedGlyph(
const ShapedGlyph& shapedGlyph);
101 void DrawShapedGlyphs(
const std::vector<Text::ShapedGlyph>& shapedGlyphs);
113 void SetupRenderables();
121 m44 m_modelToWorldTransform;