27 #ifndef _CEGUIOpenGL3Shader_h_ 28 #define _CEGUIOpenGL3Shader_h_ 30 #include "CEGUI/Exceptions.h" 31 #include "RendererBase.h" 35 # pragma warning(push) 36 # pragma warning(disable : 4251) 43 class OPENGL_GUIRENDERER_API OpenGL3Shader :
44 public AllocatedObject<OpenGL3Shader>
52 OpenGL3Shader(
const std::string& vertex_shader_source,
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) Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
void getGLErrors(const char *location)
Query OpenGL errors and process them in CEGUI.
Definition: Shader.cpp:249