Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/environments/water.h @ 6461

Last change on this file since 6461 was 6458, checked in by bensch, 19 years ago

orxonox/trunk: wave now also rebuilds the Normals (do not know if this is really necesarry, but i sure hope so for all the work :)

File size: 1.0 KB
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 */
16class Material;
17class Grid;
18
19//! A Class to handle a WaterEffects
20class 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 setHeight(float height);
31   void rebuildGrid();
32
33   void draw() const;
34   void tick(float dt);
35
36  private:
37    Grid*           grid;            //!< The water-surface-model to render with
38    Material*       waterMaterial;
39    float           height;          //!< The hight of the Water
40
41    unsigned int    resX, resY;
42    float           sizeX, sizeY;
43
44    float phase;
45};
46
47#endif  /* _WATER_H */
48
49
50
Note: See TracBrowser for help on using the repository browser.