Exception indicating shader variable-related error. More...
#include </home/chochlik/devel/oglplus/include/oglplus/error.hpp>
Public Types | |
typedef std::map< String, String > | PropertyMap |
A map of properties attached to the exception. | |
typedef std::list< ErrorInfo > | PropagationInfoList |
List of ErrorInfo objects marking exception trace points. | |
Public Member Functions | |
GLint | Location (void) const |
The location of the shader variable (uniform, vertex attribute) More... | |
GLenum | Code (void) const |
Returns the OpenGL error code. More... | |
const ErrorInfo & | ThrowInfo (void) const |
Returns information about the throw site of the exception. More... | |
const char * | GLSymbol (void) const |
Returns the name of the symbol or constant related to the error. More... | |
const char * | File (void) const |
Returns the path of the source file where the exception originated. More... | |
const char * | Func (void) const |
Returns the name of the function where the exception originated. More... | |
unsigned | Line (void) const |
Returns the line in the source file where the exception originated. More... | |
const char * | ClassName (void) const |
Returns the class name of the object that caused the exception. | |
const char * | BindTarget (void) const |
Returns the name of the binding point that caused the exception. | |
const String & | ObjectDescription (void) const |
Returns the description of the object that caused the exception. | |
PropertyMap | Properties (void) const |
Returns the properties of the exception. More... | |
void | SetPropertyValue (const String &key, const String &value) |
Set a property key/value to the exception. | |
PropagationInfoList | PropagationInfo (void) const |
Returns a list of ErrorInfo objects marking exception trace points. More... | |
Static Public Member Functions | |
template<typename Key , typename Value > | |
static void | AddPropertyValue (PropertyMapInit &properties, Key &&key, Value &&value) |
Set a property key/value to the property map. | |
Exception indicating shader variable-related error.
Instances of this class are thrown when an invalid shader variable-related operation is performed, for example when a value of a invalid type is assigned to a shader uniform variable or vertex attribute.
|
inherited |
|
inherited |
Returns the path of the source file where the exception originated.
References ErrorFile().
|
inherited |
Returns the name of the function where the exception originated.
References ErrorFunc().
|
inherited |
Returns the name of the symbol or constant related to the error.
This function returns the name of the failed OpenGL function without the gl prefix in case of a function error or the name of the OpenGL constant (usually a implementation-dependent) limit which are related to the error.
References oglplus::ErrorGLSymbol().
|
inherited |
Returns the line in the source file where the exception originated.
References ErrorLine().
GLint oglplus::ShaderVariableError::Location | ( | void | ) | const |
The location of the shader variable (uniform, vertex attribute)
This is the value either assigned by the GL or explicitly specified by the GLSL layout location specifier or bound by BindAttribLocation
|
inherited |
Returns a list of ErrorInfo objects marking exception trace points.
|
inherited |
Returns the properties of the exception.
|
inherited |