MinVR
0.9.0
A multi-platform virtual reality library
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
MVRCore
include
MVRCore
WindowSettings.H
Go to the documentation of this file.
1
//========================================================================
2
// MinVR
3
// Platform: Any
4
// API version: 1.0
5
//------------------------------------------------------------------------
6
// The MIT License (MIT)
7
//
8
// Copyright (c) 2013 Regents of the University of Minnesota
9
//
10
// Permission is hereby granted, free of charge, to any person obtaining a copy of
11
// this software and associated documentation files (the "Software"), to deal in
12
// the Software without restriction, including without limitation the rights to
13
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
14
// the Software, and to permit persons to whom the Software is furnished to do so,
15
// subject to the following conditions:
16
//
17
// The above copyright notice and this permission notice shall be included in all
18
// copies or substantial portions of the Software.
19
//
20
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
22
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
23
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
24
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
//========================================================================
27
37
#ifndef WINDOWSETTINGS_H
38
#define WINDOWSETTINGS_H
39
40
#include <string>
41
#include <vector>
42
#include <boost/shared_ptr.hpp>
43
#include "
MVRCore/Rect2D.H
"
44
45
namespace
MinVR {
46
47
typedef
boost::shared_ptr<class WindowSettings>
WindowSettingsRef
;
48
49
class
WindowSettings
50
{
51
public
:
52
enum
StereoType
{
53
STEREOTYPE_MONO
= 0,
54
STEREOTYPE_QUADBUFFERED
= 1,
55
STEREOTYPE_CHECKERBOARD
= 2,
56
STEREOTYPE_INTERLACEDCOLUMNS
= 3,
57
STEREOTYPE_INTERLACEDROWS
= 4,
58
STEREOTYPE_SIDEBYSIDE
= 5
59
};
60
61
WindowSettings
() :
width
(960),
height
(600),
xPos
(0),
yPos
(0),
windowTitle
(
"MinVR"
),
resizable
(true),
rgbBits
(8),
62
alphaBits
(8),
depthBits
(24),
stencilBits
(8),
stereo
(false),
stereoType
(
WindowSettings
::
STEREOTYPE_MONO
),
msaaSamples
(0),
63
framed
(true),
fullScreen
(false),
visible
(true),
useGPUAffinity
(true),
useDebugContext
(false) {};
64
~WindowSettings
() {};
65
66
int
width
;
67
int
height
;
68
int
xPos
;
69
int
yPos
;
70
std::string
windowTitle
;
71
bool
resizable
;
72
int
rgbBits
;
73
int
alphaBits
;
74
int
depthBits
;
75
int
stencilBits
;
76
bool
stereo
;
77
StereoType
stereoType
;
78
int
msaaSamples
;
79
bool
framed
;
80
bool
fullScreen
;
81
bool
visible
;
82
std::vector<MinVR::Rect2D>
viewports
;
83
bool
useGPUAffinity
;
84
bool
useDebugContext
;
85
};
86
87
}
// end namespace
88
89
#endif
Generated on Fri Sep 13 2013 13:56:18 for MinVR by
1.8.4