diff options
Diffstat (limited to 'graphics/opengl/geometry_renderer.hpp')
-rw-r--r-- | graphics/opengl/geometry_renderer.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/graphics/opengl/geometry_renderer.hpp b/graphics/opengl/geometry_renderer.hpp index d8da1669de..9231c8be1e 100644 --- a/graphics/opengl/geometry_renderer.hpp +++ b/graphics/opengl/geometry_renderer.hpp @@ -49,8 +49,14 @@ namespace graphics VertexDecl * m_vertexDecl; shared_ptr<Program> m_program; + DrawGeometry(); + virtual bool isNeedAdditionalUniforms() const; + virtual void setAdditionalUniforms(UniformsHolder const & holder); void perform(); void dump(); + + private: + float m_alfa; }; struct FreeStorage : public Command @@ -95,7 +101,17 @@ namespace graphics struct ApplyStates : public Command { + enum ProgramType + { + DefaultProgram, + AlfaVaringProgram + }; + + ApplyStates(ProgramType type = DefaultProgram) : m_type(type) {} void perform(); + + private: + ProgramType m_type; }; struct ApplyBlitStates : public Command @@ -122,6 +138,7 @@ namespace graphics void applySharpStates(); void applyBlitStates(); + void applyVarAlfaStates(); void applyStates(); }; } |