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
AbstractMVRApp.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
28
#ifndef ABSTRACTMVRAPP_H
29
#define ABSTRACTMVRAPP_H
30
31
#include <boost/shared_ptr.hpp>
32
#include <glm/glm.hpp>
33
#include "
MVRCore/Event.H
"
34
#include "
MVRCore/ConfigVal.H
"
35
#include "
MVRCore/AbstractCamera.H
"
36
#include "
MVRCore/AbstractWindow.H
"
37
#include <vector>
38
39
namespace
MinVR {
40
41
typedef
boost::shared_ptr<class AbstractMVRApp>
AbstractMVRAppRef
;
42
46
class
AbstractMVRApp
47
{
48
public
:
49
50
AbstractMVRApp
() {}
51
virtual
~AbstractMVRApp
() {}
52
64
virtual
void
doUserInputAndPreDrawComputation
(
const
std::vector<EventRef> &events,
double
synchronizedTime) = 0;
65
78
virtual
void
initializeContextSpecificVars
(
int
threadId,
WindowRef
window) = 0;
79
101
virtual
void
drawGraphics
(
int
threadId,
AbstractCameraRef
camera,
WindowRef
window) = 0;
102
103
};
104
105
106
107
}
// end namespace
108
109
#endif
110
111
Generated on Fri Sep 13 2013 13:56:18 for MinVR by
1.8.4