-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathenviroment.h
52 lines (39 loc) · 949 Bytes
/
enviroment.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
42
43
44
45
46
47
48
49
50
51
52
#ifndef ENVIROMENT_H_
#define ENVIROMENT_H_
#include <string>
#include <osgShadow/ShadowedScene>
#include <osgShadow/ShadowMap>
#include <osg/Group>
#include <osg/LightSource>
#include <osg/MatrixTransform>
#include "macro.h"
namespace amussementpark {
class ShadowHolder: public osgShadow::ShadowedScene {
public:
static const INT RECEIVE_SHADOW_MASK;
static const INT CAST_SHADOW_MASK;
ShadowHolder();
void applyMaskToGroup(osg::Group *group, INT mask);
};
class Sky: public osg::Geode {
public:
Sky(DOUBLE dRadius);
};
class Floor: public osg::Geode {
public:
Floor(DOUBLE width, DOUBLE tileWidth);
};
class Bush: public osg::MatrixTransform {
public:
Bush(DOUBLE x, DOUBLE y, DOUBLE rotation);
};
class Sun: public osg::LightSource {
public:
Sun(DOUBLE zValue);
};
class StreetLamp: public osg::MatrixTransform {
public:
StreetLamp(DOUBLE x, DOUBLE y, DOUBLE scale);
};
}
#endif