3 #include "PolylineShapes.h"
16 static PolylineShader* Create(
const Rendering::TShaderId shaderId);
18 PolylineShader(
const Rendering::TShaderId shaderId,
const std::string& vertexCode,
const std::string& fragmentCode);
25 void SetModelViewProjection(
const m44& modelViewProjection)
27 const bool transpose =
false;
28 SetUniformM44(modelViewProjection, m_modelViewProjectionUniform, transpose);
31 void SetWidth(
const v2& halfWidth_miterLimit)
33 SetUniformV2(halfWidth_miterLimit, m_widthUniform);
36 void SetColor(
const v4& color)
38 SetUniformV4(color, m_colorUniform);
41 void SetScalesWithMap(
bool scalesWithMap)
43 SetUniformBool(scalesWithMap, m_scalesWithMapUniform);
46 void SetViewportDimensions(
const v2& viewportDimensions)
48 SetUniformV2(viewportDimensions, m_viewportDimensionsUniform);
51 void SetMVP(
const m44& mvp)
const
57 GLuint m_modelViewProjectionUniform;
58 GLuint m_widthUniform;
59 GLuint m_colorUniform;
60 GLuint m_scalesWithMapUniform;
61 GLuint m_viewportDimensionsUniform;