6 #include "IScreenIconRenderer.h"
7 #include "VectorMath.h"
10 #include "Rendering.h"
12 #include "BatchedIconRenderable.h"
13 #include "IconRendererStateComponent.h"
36 void SetIconSet(
const IconSet* pIconSet)
38 m_pIconRendererStateComponent->SetIconSet(pIconSet);
41 void SetDefaultState();
43 void SetIconColor(
const v4& iconColor)
45 m_pIconRendererStateComponent->SetIconColor(iconColor);
48 void SetIconScale(
float iconScale)
50 m_pIconRendererStateComponent->SetScale(iconScale);
53 void SetTransform(
const v2& translate,
const v2& rotate,
const v2& scale)
55 m_pIconRendererStateComponent->SetTransform(translate, rotate, scale);
58 void SetDepthTest(
bool depthTest)
60 m_pIconRendererStateComponent->SetDepthTest(depthTest);
63 void SetStencilTest(
bool stencilTest)
65 m_pIconRendererStateComponent->SetStencilTest(stencilTest);
68 void SetStencilFunc(GLenum stencilFunc,
int stencilRef, u32 stencilMask)
70 m_pIconRendererStateComponent->SetStencilFunc(stencilFunc, stencilRef, stencilMask);
73 void SetStencilMaskedStyle(
bool enable, GLenum stencilFunc,
const v4& iconColor)
75 m_pIconRendererStateComponent->SetStencilMaskedStyle(enable, stencilFunc, iconColor);
78 void SetRenderLayer(Rendering::LayerIds::Values layer,
int subLayer)
80 m_pIconRendererStateComponent->SetRenderLayer(layer, subLayer);
83 void SetAlpha(
float alpha)
85 m_pIconRendererStateComponent->SetAlpha(alpha);
90 void DrawIcons(
const std::vector<const IconDefinition*>& shapedIcons);
99 void SetupRenderables();