Equalizer
1.9.0
Parallel Rendering Framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
drawableConfig.h
1
2
/* Copyright (c) 2005-2015, Stefan Eilemann <eile@equalizergraphics.com>
3
* Daniel Nachbaur <danielnachbaur@gmail.com>
4
*
5
* This library is free software; you can redistribute it and/or modify it under
6
* the terms of the GNU Lesser General Public License version 2.1 as published
7
* by the Free Software Foundation.
8
*
9
* This library is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12
* details.
13
*
14
* You should have received a copy of the GNU Lesser General Public License
15
* along with this library; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
*/
18
19
#ifndef EQ_DRAWABLECONFIG_H
20
#define EQ_DRAWABLECONFIG_H
21
22
#include <iostream>
23
24
namespace
eq
25
{
26
namespace
fabric
27
{
29
struct
DrawableConfig
30
{
31
DrawableConfig
()
32
:
stencilBits
(0),
colorBits
(0),
alphaBits
(0),
accumBits
(0)
33
,
glVersion
( 0.f ),
stereo
(
false
),
doublebuffered
(
false
)
34
,
coreProfile
(
false
) {}
35
36
int32_t
stencilBits
;
37
int32_t
colorBits
;
38
int32_t
alphaBits
;
39
int32_t
accumBits
;
40
float
glVersion
;
41
bool
stereo
;
42
bool
doublebuffered
;
43
bool
coreProfile
;
44
};
45
46
inline
std::ostream& operator << ( std::ostream& os,
47
const
DrawableConfig
& config )
48
{
49
os <<
"GL"
<< config.
glVersion
;
50
if
( config.
glVersion
>= 3.2f )
51
os << (config.
coreProfile
?
"|Core"
:
"|Compat"
);
52
os <<
"|rgb"
<< config.
colorBits
;
53
if
( config.
alphaBits
)
54
os <<
"a"
<< config.
alphaBits
;
55
if
( config.
stencilBits
)
56
os <<
"|st"
<< config.
stencilBits
;
57
if
( config.
accumBits
)
58
os <<
"|acc"
<< config.
accumBits
;
59
if
( config.
doublebuffered
)
60
os <<
"|DB"
;
61
if
( config.
stereo
)
62
os <<
"|ST"
;
63
return
os;
64
}
65
}
66
}
67
68
namespace
lunchbox
69
{
70
template
<>
inline
void
byteswap(
eq::fabric::DrawableConfig
& value )
71
{
72
byteswap( value.
stencilBits
);
73
byteswap( value.
colorBits
);
74
byteswap( value.
alphaBits
);
75
byteswap( value.
accumBits
);
76
byteswap( value.
glVersion
);
77
}
78
}
79
#endif // EQ_DRAWABLECONFIG_H
80
eq::fabric::DrawableConfig::coreProfile
bool coreProfile
Core or Compat profile (since OpenGL 3.2)
Definition:
drawableConfig.h:43
eq::fabric::DrawableConfig::colorBits
int32_t colorBits
Number of bits per color component.
Definition:
drawableConfig.h:37
eq::fabric::DrawableConfig::alphaBits
int32_t alphaBits
Number of alpha bits.
Definition:
drawableConfig.h:38
eq::fabric::DrawableConfig::stereo
bool stereo
Active stereo supported.
Definition:
drawableConfig.h:41
eq::fabric::DrawableConfig::accumBits
int32_t accumBits
Number of accumulation bits.
Definition:
drawableConfig.h:39
eq::fabric::DrawableConfig
Stores the characteristics of a window's frame buffer configuration.
Definition:
drawableConfig.h:29
eq::fabric::DrawableConfig::glVersion
float glVersion
OpenGL version.
Definition:
drawableConfig.h:40
eq::fabric::DrawableConfig::stencilBits
int32_t stencilBits
Number of stencil bits.
Definition:
drawableConfig.h:36
eq::fabric::DrawableConfig::doublebuffered
bool doublebuffered
Doublebuffering supported.
Definition:
drawableConfig.h:42
install
include
eq
fabric
drawableConfig.h
Generated on Tue Jul 7 2015 15:00:42 for Equalizer by
1.8.6