glbinding  2.1.1.000000000000
A C++ binding for the OpenGL API, generated using the gl.xml specification.
Loading...
Searching...
No Matches
AbstractValue.h
Go to the documentation of this file.
1
2#pragma once
3
4#include <string>
5#include <iosfwd>
6
7#include <glbinding/glbinding_api.h>
8
9
10namespace glbinding
11{
12
13
20class GLBINDING_API AbstractValue
21{
22public:
28
33 virtual ~AbstractValue();
34
42 virtual void printOn(std::ostream & stream) const = 0;
43
51 std::string asString() const;
52};
53
54
55} // namespace glbinding
The AbstractValue class represents the superclass of a printable wrapper around an OpenGL data type.
Definition AbstractValue.h:21
virtual ~AbstractValue()
Destructor for correct memory deallocation on subclasses.
AbstractValue()
Constructor.
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.
Contains all the classes of glbinding.