28 #ifndef _CEGUIOpenGL3Shader_h_
29 #define _CEGUIOpenGL3Shader_h_
31 #include "CEGUI/Exceptions.h"
32 #include "RendererBase.h"
36 # pragma warning(push)
37 # pragma warning(disable : 4251)
53 const std::string& fragment_shader_source);
73 GLuint getAttribLocation(
const std::string &name)
const;
79 GLuint getUniformLocation(
const std::string &name)
const;
86 void bindFragDataLocation(
const std::string &name);
88 bool isCreatedSuccessfully();
93 GLuint compile(GLuint type,
const std::string &source);
95 void outputShaderLog(GLuint shader);
96 void outputProgramLog(GLuint program);
98 std::string d_shaderName;
99 bool d_createdSucessfully;
101 GLuint d_vertexShader;
102 GLuint d_fragmentShader;
103 GLuint d_geometryShader;
107 #define STRINGIFY(x) #x
108 #define TOSTRING(x) STRINGIFY(x)
109 #define AT __FILE__ ":" TOSTRING(__LINE__)
110 #define checkGLErrors() getGLErrors(AT)