5 #include "IWorldIconRenderer.h"
8 #include "BatchedIconRenderable.h"
9 #include "IconRendererStateComponent.h"
29 void SetIconSet(
const IconSet* pIconSet)
31 m_pIconRendererStateComponent->SetIconSet(pIconSet);
34 void SetDefaultState();
36 void SetIconColor(
const v4& iconColor)
38 m_pIconRendererStateComponent->SetIconColor(iconColor);
41 void SetIconScale(
float iconScale)
43 m_pIconRendererStateComponent->SetScale(iconScale);
46 void SetTransform(
const v2& translate,
const v2& rotate,
const v2& scale)
48 m_pIconRendererStateComponent->SetTransform(translate, rotate, scale);
51 void SetDepthTest(
bool depthTest)
53 m_pIconRendererStateComponent->SetDepthTest(depthTest);
56 void SetStencilTest(
bool stencilTest)
58 m_pIconRendererStateComponent->SetStencilTest(stencilTest);
61 void SetStencilFunc(GLenum stencilFunc,
int stencilRef, u32 stencilMask)
63 m_pIconRendererStateComponent->SetStencilFunc(stencilFunc, stencilRef, stencilMask);
66 void SetStencilMaskedStyle(
bool enable, GLenum stencilFunc,
const v4& iconColor)
68 m_pIconRendererStateComponent->SetStencilMaskedStyle(enable, stencilFunc, iconColor);
71 void SetRenderLayer(Rendering::LayerIds::Values layer,
int subLayer)
73 m_pIconRendererStateComponent->SetRenderLayer(layer, subLayer);
76 void SetAlpha(
float alpha)
78 m_pIconRendererStateComponent->SetAlpha(alpha);
81 void SetModelToWorldTransform(
const m44& transform)
83 m_modelToWorldTransform = transform;
88 void DrawIcons(
const std::vector<const IconDefinition*>& shapedIcons);
97 void SetupRenderables();
99 void DrawIconWorldSpace(
const IconDefinition& icon,
const v2& shapedIconPos);
105 m44 m_modelToWorldTransform;