7 #include <glbinding/gl/types.h>
9 #include <globjects/globjects_api.h>
25 static void hintImplementation(Implementation impl);
30 DebugMessage(gl::GLenum source, gl::GLenum type, gl::GLuint
id, gl::GLenum severity,
const std::string & message);
32 gl::GLenum source()
const;
33 gl::GLenum type()
const;
34 gl::GLuint id()
const;
35 gl::GLenum severity()
const;
36 const std::string & message()
const;
38 virtual std::string toString()
const;
47 std::string severityString()
const;
48 std::string sourceString()
const;
49 std::string typeString()
const;
52 static void enable(
bool synchronous =
true);
55 static void setCallback(
Callback callback);
57 static void setSynchronous(
bool synchronous);
59 static void insertMessage(gl::GLenum source, gl::GLenum type, gl::GLuint
id, gl::GLenum severity, gl::GLsizei length,
const char * message);
60 static void insertMessage(gl::GLenum source, gl::GLenum type, gl::GLuint
id, gl::GLenum severity,
const std::string & message);
63 static void enableMessage(gl::GLenum source, gl::GLenum type, gl::GLenum severity, gl::GLuint
id);
64 static void enableMessages(gl::GLenum source, gl::GLenum type, gl::GLenum severity, gl::GLsizei count,
const gl::GLuint * ids);
65 static void enableMessages(gl::GLenum source, gl::GLenum type, gl::GLenum severity,
const std::vector<gl::GLuint> & ids);
67 static void disableMessage(gl::GLenum source, gl::GLenum type, gl::GLenum severity, gl::GLuint
id);
68 static void disableMessages(gl::GLenum source, gl::GLenum type, gl::GLenum severity, gl::GLsizei count,
const gl::GLuint * ids);
69 static void disableMessages(gl::GLenum source, gl::GLenum type, gl::GLenum severity,
const std::vector<gl::GLuint> & ids);
71 static void controlMessages(gl::GLenum source, gl::GLenum type, gl::GLenum severity, gl::GLsizei count,
const gl::GLuint * ids, gl::GLboolean enabled);
73 static bool isFallbackImplementation();