glbinding  3.3.0.0
A C++ binding for the OpenGL API, generated using the gl.xml specification.
Loading...
Searching...
No Matches
types_to_string.inl
Go to the documentation of this file.
1
2#pragma once
3
4
5#include <ostream>
6
7
8namespace glbinding
9{
10
11
12template <typename T>
13std::ostream & operator<<(std::ostream & stream, const Value<T> & value)
14{
15 stream << value.value();
16
17 return stream;
18}
19
20template <typename T>
21std::ostream & operator<<(std::ostream & stream, const Value<T *> & value)
22{
23 stream << std::hex << value.value() << std::dec;
24
25 return stream;
26}
27
28
29} // namespace glbinding
The Value class represents a printable wrapper around an OpenGL data type.
Definition Value.h:30
GLBINDING_CONSTEXPR T value() const
Get the value.
Definition Value.inl:51
Contains all the classes of glbinding.
std::ostream & operator<<(std::ostream &stream, const Value< T > &value)
Generic ostream operator for the Value template.
Definition types_to_string.inl:13