source:
orxonox.OLD/trunk/src/world_entities/environments/water.h
@
6464
Last change on this file since 6464 was 6458, checked in by bensch, 19 years ago | |
---|---|
File size: 1.0 KB |
Rev | Line | |
---|---|---|
[4597] | 1 | /*! |
[6455] | 2 | * @file water.h |
[5357] | 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. | |
[3416] | 7 | */ |
8 | ||
[6455] | 9 | #ifndef _WATER_H |
10 | #define _WATER_H | |
[3416] | 11 | |
[3419] | 12 | /* INCLUDES */ |
[3502] | 13 | #include "world_entity.h" |
[3411] | 14 | |
[5405] | 15 | /* FORWARD DECLARATION */ |
[5511] | 16 | class Material; |
[6455] | 17 | class Grid; |
[3419] | 18 | |
[6455] | 19 | //! A Class to handle a WaterEffects |
20 | class Water : public WorldEntity | |
[3411] | 21 | { |
[3416] | 22 | public: |
[6455] | 23 | Water(const TiXmlElement* root = NULL); |
24 | ~Water(); | |
[4010] | 25 | |
[6455] | 26 | void loadParams(const TiXmlElement* root); |
[3419] | 27 | |
[6455] | 28 | void setResolution(unsigned int resX, unsigned int resY); |
29 | void setSize(float sizeX, float sizeY); | |
[6458] | 30 | void setHeight(float height); |
[6455] | 31 | void rebuildGrid(); |
[4680] | 32 | |
[6457] | 33 | void draw() const; |
[6456] | 34 | void tick(float dt); |
35 | ||
[6455] | 36 | private: |
37 | Grid* grid; //!< The water-surface-model to render with | |
[6457] | 38 | Material* waterMaterial; |
[6458] | 39 | float height; //!< The hight of the Water |
[4261] | 40 | |
[6455] | 41 | unsigned int resX, resY; |
42 | float sizeX, sizeY; | |
[6457] | 43 | |
44 | float phase; | |
[3411] | 45 | }; |
46 | ||
[6455] | 47 | #endif /* _WATER_H */ |
[3411] | 48 | |
49 | ||
[3484] | 50 |
Note: See TracBrowser
for help on using the repository browser.