Line | |
---|
1 | /*! |
---|
2 | * @file water.h |
---|
3 | * Definition of the SkyBox, that handles the Display of an atmosphere for orxonox. |
---|
4 | * |
---|
5 | * A SkyBox is always centered at the current working Camera, and will only obey the cameras |
---|
6 | * movment but not its rotation. |
---|
7 | */ |
---|
8 | |
---|
9 | #ifndef _WATER_H |
---|
10 | #define _WATER_H |
---|
11 | |
---|
12 | /* INCLUDES */ |
---|
13 | #include "world_entity.h" |
---|
14 | |
---|
15 | /* FORWARD DECLARATION */ |
---|
16 | class Material; |
---|
17 | class Grid; |
---|
18 | |
---|
19 | //! A Class to handle a WaterEffects |
---|
20 | class Water : public WorldEntity |
---|
21 | { |
---|
22 | public: |
---|
23 | Water(const TiXmlElement* root = NULL); |
---|
24 | ~Water(); |
---|
25 | |
---|
26 | void loadParams(const TiXmlElement* root); |
---|
27 | |
---|
28 | void setResolution(unsigned int resX, unsigned int resY); |
---|
29 | void setSize(float sizeX, float sizeY); |
---|
30 | void rebuildGrid(); |
---|
31 | |
---|
32 | private: |
---|
33 | Grid* grid; //!< The water-surface-model to render with |
---|
34 | |
---|
35 | unsigned int resX, resY; |
---|
36 | float sizeX, sizeY; |
---|
37 | }; |
---|
38 | |
---|
39 | #endif /* _WATER_H */ |
---|
40 | |
---|
41 | |
---|
42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.