glbinding  2.1.1.000000000000
A C++ binding for the OpenGL API, generated using the gl.xml specification.
Loading...
Searching...
No Matches
glbinding::AbstractValue Class Referenceabstract

The AbstractValue class represents the superclass of a printable wrapper around an OpenGL data type. More...

#include <glbinding/include/glbinding/AbstractValue.h>

Inheritance diagram for glbinding::AbstractValue:
glbinding::Value< T >

Public Member Functions

 AbstractValue ()
 Constructor.
 
virtual ~AbstractValue ()
 Destructor for correct memory deallocation on subclasses.
 
virtual void printOn (std::ostream &stream) const =0
 Prints the contents of this AbstractValue on a stream.
 
std::string asString () const
 Convert the contents of this AbstractValue to a string.
 

Detailed Description

The AbstractValue class represents the superclass of a printable wrapper around an OpenGL data type.

This class and its subclasses Value<T> are mainly used when callbacks of OpenGL functions are used.

Constructor & Destructor Documentation

◆ AbstractValue()

glbinding::AbstractValue::AbstractValue ( )

Constructor.

◆ ~AbstractValue()

virtual glbinding::AbstractValue::~AbstractValue ( )
virtual

Destructor for correct memory deallocation on subclasses.

Member Function Documentation

◆ printOn()

virtual void glbinding::AbstractValue::printOn ( std::ostream &  stream) const
pure virtual

Prints the contents of this AbstractValue on a stream.

Parameters
[in]streamThe stream to print on.

Implemented in glbinding::Value< T >, glbinding::Value< T >, glbinding::Value< T >, glbinding::Value< T >, glbinding::Value< T >, and glbinding::Value< T >.

◆ asString()

std::string glbinding::AbstractValue::asString ( ) const

Convert the contents of this AbstractValue to a string.

Returns
The string.

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