28 #ifndef _CEGUIOpenGL3Shader_h_
29 #define _CEGUIOpenGL3Shader_h_
31 #include "CEGUI/Exceptions.h"
35 # pragma warning(push)
36 # pragma warning(disable : 4251)
52 const std::string& fragment_shader_source);
87 bool isCreatedSuccessfully();
92 GLuint compile(GLuint type,
const std::string &source);
94 void outputShaderLog(GLuint shader);
95 void outputProgramLog(GLuint program);
97 std::string d_shaderName;
98 bool d_createdSucessfully;
100 GLuint d_vertexShader;
101 GLuint d_fragmentShader;
102 GLuint d_geometryShader;
106 #define STRINGIFY(x) #x
107 #define TOSTRING(x) STRINGIFY(x)
108 #define AT __FILE__ ":" TOSTRING(__LINE__)
109 #define checkGLErrors() getGLErrors(AT)