glbinding
2.0.0.00e2ff521289
A C++ binding for the OpenGL API, generated using the gl.xml specification.
|
The Value class represents a printable wrapper around an OpenGL data type. More...
#include <glbinding/include/glbinding/Value.h>
Public Member Functions | |
Value (const T &value) | |
Constructor. More... | |
Value & | operator= (const Value &)=delete |
The deleted assigment operator. More... | |
virtual void | printOn (std::ostream &stream) const override |
Prints the contents of this Value on a stream. More... | |
template<> | |
GLBINDING_API void | printOn (std::ostream &stream) const |
A specialized printOn method for the gl::GLenum Value template. More... | |
template<> | |
GLBINDING_API void | printOn (std::ostream &stream) const |
A specialized method for the gl::GLbitfield Value template. More... | |
template<> | |
GLBINDING_API void | printOn (std::ostream &stream) const |
A specialized printOn method for the gl::GLubyte * Value template. More... | |
template<> | |
GLBINDING_API void | printOn (std::ostream &stream) const |
A specialized printOn method for the gl::GLchar * Value template. More... | |
template<> | |
GLBINDING_API void | printOn (std::ostream &stream) const |
A specialized printOn method for the gl::GLuint_array_2 Value template. More... | |
Public Member Functions inherited from glbinding::AbstractValue | |
AbstractValue () | |
Constructor. More... | |
virtual | ~AbstractValue () |
Destructor for correct memory deallocation on subclasses. More... | |
std::string | asString () const |
Convert the contents of this AbstractValue to a string. More... | |
Protected Attributes | |
const T | value |
The value that should be printed later. More... | |
The Value class represents a printable wrapper around an OpenGL data type.
T | The data type of the wrapped value. |
This class is mainly used when callbacks of OpenGL functions are used.
glbinding::Value< T >::Value | ( | const T & | value | ) |
Constructor.
[in] | value | The value that should be printed later. |
|
delete |
The deleted assigment operator.
For this dynamically allocated Value, no contents should be changable.
|
overridevirtual |
Prints the contents of this Value on a stream.
[in] | stream | The stream to print on. |
Implements glbinding::AbstractValue.
References glbinding::Value< T >::value.
|
virtual |
A specialized printOn method for the gl::GLenum Value template.
Implements glbinding::AbstractValue.
|
virtual |
A specialized method for the gl::GLbitfield Value template.
A specialized printOn method for the gl::GLenum Value template.
Implements glbinding::AbstractValue.
|
virtual |
A specialized printOn method for the gl::GLubyte * Value template.
Implements glbinding::AbstractValue.
|
virtual |
A specialized printOn method for the gl::GLchar * Value template.
Implements glbinding::AbstractValue.
|
virtual |
A specialized printOn method for the gl::GLuint_array_2 Value template.
Implements glbinding::AbstractValue.
|
protected |
The value that should be printed later.
Referenced by glbinding::Value< T >::printOn().