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