8 #include "IRenderableFilter.h"
9 #include "VectorMath.h"
24 virtual void SetDefaultState() = 0;
28 virtual void SetTextSize(
float pixelHeight) = 0;
30 virtual void SetGlyphColor(
const v4& color) = 0;
32 virtual void SetOutlineColor(
const v4& color) = 0;
34 virtual void SetHaloStyle(
const v4& color,
float haloWidth,
float haloHardness) = 0;
36 virtual void SetTransform(
const v2& translate,
const v2& rotate,
const v2& scale) = 0;
38 virtual void SetDepthTest(
bool depthTest) = 0;
40 virtual void SetStencilTest(
bool stencilTest) = 0;
42 virtual void SetStencilFunc(GLenum stencilFunc,
int stencilRef, u32 stencilMask) = 0;
44 virtual void SetStencilMaskedStyle(
bool enable, GLenum stencilFunc,
const v4& glyphColor,
const v4& haloColor) = 0;
46 virtual void SetRenderLayer(Rendering::LayerIds::Values layer,
int subLayer) = 0;
48 virtual void SetAlpha(
float alpha) = 0;
50 virtual void DrawShapedGlyph(
const ShapedGlyph& shapedGlyph) = 0;
52 virtual void DrawShapedGlyphs(
const std::vector<Text::ShapedGlyph>& shapedGlyphs) = 0;
54 virtual void Finalize() = 0;
56 virtual void Upload() = 0;
58 virtual void Reset() = 0;