GL++  0.1
OpenGL API C++ Wrapper
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Groups Pages
glpp::gl_error Struct Reference

Exception that wraps an OpenGL error code. More...

#include <exception.hpp>

Inheritance diagram for glpp::gl_error:
glpp::exception

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.

Detailed Description

Exception that wraps an OpenGL error code.

Constructor & Destructor Documentation

glpp::gl_error::gl_error ( GLenum  error)
inline

Construct with the error code.

Error message will be "GL: <human_readable_glerror_code>"

glpp::gl_error::gl_error ( GLenum  error,
const std::string &  custom_msg 
)
inline

Construct with error code and custom message.

Error message will be "GL: <custom_msg> <human_readable_glerror_code>"


The documentation for this struct was generated from the following file: