9 #include "VectorMath.h"
21 static TextShader* Create(
const TShaderId shaderId);
23 static TextShader* CreateWithOutline(
const TShaderId shaderId);
25 const GLuint GetDiffuseSamplerId()
const;
27 void SetMVP(
const m44& mvp)
const;
29 void SetScale(
const v3& scale)
const;
31 void SetForegroundColour(
const v4& rgba);
33 void SetShadowColour(
const v4& rgba);
35 void SetOutlineColour(
const v4& rgba);
37 void SetThresholds(
const bool outlinedText);
42 GLuint m_modelViewProjectionUniformLocation;
43 GLuint m_scaleUniformLocation;
44 GLuint m_foregroundColourUniformLocation;
45 GLuint m_shadowColourUniformLocation;
46 GLuint m_outlineColourUniformLocation;
47 GLuint m_diffuseTextureSampleUniformLocation;
48 GLuint m_thresholdsUniformLocation;
50 const bool m_hasOutlineColourUniform;
52 TextShader(
const TShaderId shaderId,
const std::string& vertexCode,
const std::string& fragmentCode,
bool hasOutlineColourUniform);