Equalizer
1.6.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
install
include
eq
fabric
fabric/eye.h
1
2
/* Copyright (c) 2007-2013, Stefan Eilemann <eile@equalizergraphics.com>
3
* Copyright (c) 2010, Cedric Stalder <cedric.stalder@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 EQFABRIC_EYE_H
20
#define EQFABRIC_EYE_H
21
22
#include <eq/fabric/api.h>
23
#include <iostream>
24
25
namespace
eq
26
{
27
namespace
fabric
28
{
32
enum
Eye
33
{
34
EYE_CYCLOP_BIT = 0,
35
EYE_LEFT_BIT = 1,
36
EYE_RIGHT_BIT = 2,
37
EYE_UNDEFINED = 0,
38
EYE_CYCLOP
= 1 << EYE_CYCLOP_BIT,
39
EYE_LEFT
= 1 << EYE_LEFT_BIT,
40
EYE_RIGHT
= 1 << EYE_RIGHT_BIT,
41
EYE_LAST
=
EYE_RIGHT
,
42
NUM_EYES = 3,
43
EYES_STEREO
=
EYE_LEFT
|
EYE_RIGHT
,
44
EYES_ALL
= 7
45
};
46
47
EQFABRIC_API std::ostream& operator << ( std::ostream& os,
const
Eye
& eye );
48
}
49
}
50
51
namespace
lunchbox
52
{
53
template
<>
inline
void
byteswap(
eq::fabric::Eye
& value )
54
{ byteswap( reinterpret_cast< uint32_t& >( value )); }
55
}
56
57
#endif // EQFABRIC_EYE_H
eq::fabric::EYE_LAST
the last eye
Definition:
fabric/eye.h:41
eq::fabric::EYE_CYCLOP
monoscopic 'middle' eye
Definition:
fabric/eye.h:38
eq::fabric::Eye
Eye
Eye pass bit mask for which is enabled.
Definition:
fabric/eye.h:32
eq::fabric::EYE_RIGHT
right eye
Definition:
fabric/eye.h:40
eq::fabric::EYES_STEREO
left and right eye
Definition:
fabric/eye.h:43
eq::fabric::EYE_LEFT
left eye
Definition:
fabric/eye.h:39
eq::fabric::EYES_ALL
all eyes
Definition:
fabric/eye.h:44
Generated on Thu Dec 5 2013 14:22:27 for Equalizer by
1.8.5