![]() |
ImFusion C++ SDK 4.4.0
|
The GL::Debug namespace contains functions and class to help with debugging OpenGL calls. More...
The GL::Debug namespace contains functions and class to help with debugging OpenGL calls.
Most functions except for check() and checkAndThrow() rely on the KHR_debug extension. All functions only annotate the OpenGL command stream but don't effect the rendering in any way. For more information, see: https://www.opengl.org/wiki/Debug_Output
Classes | |
| class | OpenGlException |
| Specialization of std::runtime_error that also stores the original OpenGL error code. More... | |
| class | Group |
| The Group class allows to group a set of OpenGL calls together. More... | |
Typedefs | |
| using | MessageCallback |
| Typedef for a debug callback emitted OpenGl. | |
Functions | |
| void | defaultMessageCallback (Debug::MessageSource source, Debug::MessageType type, uint32_t id, Debug::MessageSeverity severity, const std::string &message) |
| The default OpenGL debug message callback used by ImFusionGL. | |
| void | setMessageCallback (const MessageCallback &mc, bool synchronous) |
| Sets the OpenGL debug message callback to use for the current context. | |
| Error | check (bool log=true, const char *file=0, int line=-1) |
| Convenience function wrapping glGetError() to check and return the OpenGL context error flag. | |
| void | checkAndThrow (bool log=true, const char *file=0, int line=-1) |
| Implements the same functionality as check() but throws an OpenGlException in case of an error. | |
| FramebufferStatus | checkFramebufferStatus (bool log=true) |
| Convenience function wrapping glCheckFramebufferStatus() to check the completeness of the currently bound framebuffer. | |
| void | insertMessage (const std::string &message) |
| Inserts a message into the OpenGL command stream. | |