Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 6483 was 6467, checked in by bensch, 19 years ago

orxonox/trunk: Texture loading with GL_TEXTURE_* in ResourceManager and Material

File size: 1.1 KB
RevLine 
[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]16class Material;
[6455]17class Grid;
[6467]18class Shader;
[3419]19
[6455]20//! A Class to handle a WaterEffects
21class Water : public WorldEntity
[3411]22{
[3416]23 public:
[6455]24   Water(const TiXmlElement* root = NULL);
25   ~Water();
[4010]26
[6455]27   void loadParams(const TiXmlElement* root);
[3419]28
[6455]29   void setResolution(unsigned int resX, unsigned int resY);
30   void setSize(float sizeX, float sizeY);
[6458]31   void setHeight(float height);
[6455]32   void rebuildGrid();
[4680]33
[6457]34   void draw() const;
[6456]35   void tick(float dt);
36
[6455]37  private:
38    Grid*           grid;            //!< The water-surface-model to render with
[6457]39    Material*       waterMaterial;
[6467]40    Shader*         waterShader;
[6458]41    float           height;          //!< The hight of the Water
[4261]42
[6455]43    unsigned int    resX, resY;
44    float           sizeX, sizeY;
[6457]45
46    float phase;
[3411]47};
48
[6455]49#endif  /* _WATER_H */
[3411]50
51
[3484]52
Note: See TracBrowser for help on using the repository browser.