|
GL++
0.1
OpenGL API C++ Wrapper
|
Exception that wraps an OpenGL error code. More...
#include <exception.hpp>
Public Member Functions | |
| gl_error (GLenum error) | |
| Construct with the error code. | |
| gl_error (GLenum error, const std::string &custom_msg) | |
| Construct with error code and custom message. | |
| virtual | ~gl_error () throw () |
| Inheritable. | |
Public Member Functions inherited from glpp::exception | |
| virtual | ~exception () throw () |
| Class is inheritable. | |
| exception (const std::string &error) throw () | |
| Constructor with error string. | |
| exception () throw () | |
| Default constructor. | |
| virtual const char * | what () const throw () |
| Return what string. | |
Public Attributes | |
| GLenum | m_gl_error |
| OpenGL error code. | |
Public Attributes inherited from glpp::exception | |
| std::string | m_error_str |
| Error string holder. | |
Exception that wraps an OpenGL error code.
|
inline |
Construct with the error code.
Error message will be "GL: <human_readable_glerror_code>"
|
inline |
Construct with error code and custom message.
Error message will be "GL: <custom_msg> <human_readable_glerror_code>"