-
Notifications
You must be signed in to change notification settings - Fork 2
/
world.h
41 lines (31 loc) · 870 Bytes
/
world.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef WORLD_H_
#define WORLD_H_
#include <vector>
#include <osg/Group>
#include <osgViewer/Viewer>
#include "macro.h"
#include "abstracttypes.h"
#include "enviroment.h"
namespace amussementpark {
class World {
private:
static World INSTANCE;
INT curCamera;
std::vector<StaticCameraAttachment*> cameraAttachments;
osgViewer::Viewer viewer;
ShadowHolder * initializeEnviroment(osg::Group *root);
void initializeFireworks(osg::Group *root);
void initializeHUD(osg::Group *root);
void createAndAddCarrousel(ShadowHolder *root);
void createAndAddBumperCars(ShadowHolder *root);
void createAndAddThreadmil(ShadowHolder *root);
public:
static World & getInstance();
World();
void addCameraAttach(StaticCameraAttachment *attach);
void tryToSwitchCamera(INT index);
void updateCamera();
INT run();
};
}
#endif