Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/water/src/world_entities/environments/mapped_water.h @ 7687

Last change on this file since 7687 was 7687, checked in by stefalie, 18 years ago

branches/water: activate/deactivate reflection/refraction functions added

File size: 671 bytes
Line 
1/*!
2 * @file mapped_water.h
3 *
4*/
5
6#ifndef _MAPPED_WATER_H
7#define _MAPPED_WATER_H
8
9/* INCLUDES */
10#include "world_entity.h"
11#include "material.h"
12
13
14class MappedWater : public WorldEntity
15{
16  public:
17    MappedWater(const TiXmlElement* root = NULL);
18    virtual ~MappedWater();
19
20    void loadParams(const TiXmlElement* root);
21
22    void activateReflection();
23    void deactivateReflection();
24   
25    void activateRefraction();
26    void deactivateRefraction();
27   
28    void draw() const;
29    void tick(float dt);
30
31  private:
32    void setHeight(float height);
33
34  private:
35    float           waterHeight;       //!< y-coord of the Water
36
37};
38
39#endif  /* _MAPPED_WATER_H */
Note: See TracBrowser for help on using the repository browser.