From 7a0ce777e5d7e3c5ba562ea1c811c0c3cb17a976 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 8 Jun 2014 18:38:07 +0300 Subject: Add simple shader creation. --- src/render/modernopenglgraphics.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/render/modernopenglgraphics.h') diff --git a/src/render/modernopenglgraphics.h b/src/render/modernopenglgraphics.h index 09edcbd92..75165031f 100644 --- a/src/render/modernopenglgraphics.h +++ b/src/render/modernopenglgraphics.h @@ -46,6 +46,7 @@ #include class NormalOpenGLGraphicsVertexes; +class ShaderProgram; class ModernOpenGLGraphics final : public Graphics { @@ -56,6 +57,8 @@ class ModernOpenGLGraphics final : public Graphics ~ModernOpenGLGraphics(); + void postInit() override final; + #include "render/graphicsdef.hpp" #include "render/openglgraphicsdef.hpp" @@ -67,6 +70,7 @@ class ModernOpenGLGraphics final : public Graphics GLshort *mShortVertArray; GLfloat *mFloatTexArrayCached; GLshort *mShortVertArrayCached; + ShaderProgram *mSimpleProgram; float mAlphaCached; int mVpCached; bool mTexture; -- cgit v1.2.3-60-g2f50