Base class for program compilation or linking errors. More...
#include </home/chochlik/devel/oglplus/include/oglplus/error/program.hpp>
Public Member Functions | |
const String & | Log (void) const |
Returns the compiler error output. | |
GLenum | ObjectType (void) const |
Returns the object type. | |
const char * | ObjectTypeName (void) const |
Returns the class name. | |
GLenum | BindTarget (void) const |
Returns the bind target. | |
const char * | TargetName (void) const |
Returns the bind target name. | |
GLint | ObjectName (void) const |
Object GL name. | |
const String & | ObjectDesc (void) const |
Object textual description. | |
ErrorCode | Code (void) const |
Returns the GL error code related to the error. | |
const char * | SourceFile (void) const |
Returns the name of the source file where the error occured. More... | |
const char * | SourceFunc (void) const |
Returns the name of the function where the error occured. More... | |
unsigned | SourceLine (void) const |
Returns the line of the source file where the error occured. More... | |
const char * | GLFunc (void) const |
Returns the name of the GL function related to the error. More... | |
GLenum | EnumParam (void) const |
Returns the value of the enumeration parameter related to the error. More... | |
const char * | EnumParamName (void) const |
Returns the name of the enumeration parameter related to the error. More... | |
GLint | Index (void) const |
Returns the index parameter related to the error. More... | |
virtual GLfloat | Value (void) const |
Returns the value parameter related to the error. | |
virtual GLfloat | Limit (void) const |
Returns the limit value related to the error. | |
virtual GLenum | SubjectType (void) const |
Returns the subject type. More... | |
virtual const char * | SubjectTypeName (void) const |
Returns the subject class name. More... | |
virtual GLint | SubjectName (void) const |
Returns the subject GL name. More... | |
virtual const std::string & | SubjectDesc (void) const |
Returns the subject textual description. More... | |
virtual const char * | Identifier (void) const |
Returns the identifier of a GPU program variable. More... | |
Base class for program compilation or linking errors.
|
inherited |
Returns the value of the enumeration parameter related to the error.
This function returns the value of the main enumeration parameter passed to the failed OpenGL function
The result of this function is also influenced by the #OGLPLUS_ERROR_NO_GL_SYMBOL preprocessor configuration option. If set to zero this function behaves as described above, otherwise it returns zero.
|
inherited |
Returns the name of the enumeration parameter related to the error.
This function returns the name of the main enumeration parameter passed to the failed OpenGL function
The result of this function is also influenced by the #OGLPLUS_ERROR_NO_GL_SYMBOL preprocessor configuration option. If set to zero this function behaves as described above, otherwise it returns nullptr.
|
inherited |
Returns the name of the GL function related to the error.
This function returns the name of the failed OpenGL function (without the gl
prefix) which is related to the error.
The result of this function is also influenced by the #OGLPLUS_ERROR_NO_GL_FUNC preprocessor configuration option. If set to zero this function behaves as described above, otherwise it returns nullptr.
|
virtualinherited |
Returns the identifier of a GPU program variable.
If the error is related to a GPU program variable (vertex attrib, uniform, subroutine, etc.) then this function returns a C string storing the identifier of the variable. Otherwise the result is nullptr.
Reimplemented in oglplus::ProgVarError.
|
inherited |
Returns the index parameter related to the error.
This function returns the value of the index parameter passed to the failed OpenGL function if applicable. If no index value is available then this function return a negative integer.
The result of this function is also influenced by the #OGLPLUS_ERROR_NO_GL_SYMBOL preprocessor configuration option. If set to zero this function behaves as described above, otherwise it returns a negative integer.
|
inherited |
Returns the name of the source file where the error occured.
The result of this function is also influenced by the #OGLPLUS_ERROR_NO_FILE preprocessor configuration option. If set to zero this function behaves as described above, otherwise it returns nullptr.
|
inherited |
Returns the name of the function where the error occured.
The result of this function is also influenced by the #OGLPLUS_ERROR_NO_FUNC preprocessor configuration option. If set to zero this function behaves as described above, otherwise it returns nullptr.
|
inherited |
Returns the line of the source file where the error occured.
The result of this function is also influenced by the #OGLPLUS_ERROR_NO_LINE preprocessor configuration option. If set to zero this function behaves as described above, otherwise it returns zero.
|
virtualinherited |
Returns the subject textual description.
If the error is related to a pair of GL objects, then a std::string storing the secondary object description is returned. Otherwise the result is an empty std::string.
|
virtualinherited |
Returns the subject GL name.
If the error is related to a pair of GL objects, then the numeric GL name of the secondary object is returned. Otherwise the result is a negative integer.
|
virtualinherited |
Returns the subject type.
If the error is related to a pair of GL objects, then an object type enumeration value is returned. Otherwise the result is zero.
|
virtualinherited |
Returns the subject class name.
If the error is related a pair of GL objects, then a C string storing secondary object type name is returned. Otherwise the result is nullptr.