Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Water Class Reference

#include <Water.h>

List of all members.

Public Member Functions

 Water ()
virtual ~Water ()
virtual void Init (int nVerts, float size, float depth)
virtual void CalcWaves (double seconds)
virtual void UpdateSurface (Vec3 &eyePos, VertexSet *vset)

Protected Attributes

float size
float depth
float scaleTex
float avgHeight
DWORD nVertices
WATER_SURFACEsurface
float * waves
float offsets [16]

Detailed Description

Definition at line 28 of file Water.h.


Constructor & Destructor Documentation

Water::Water ( )

Definition at line 68 of file Water.cpp.

Water::~Water ( )
virtual

Definition at line 74 of file Water.cpp.


Member Function Documentation

void Water::CalcWaves ( double  seconds)
virtual

Definition at line 153 of file Water.cpp.

void Water::Init ( int  nVerts,
float  size,
float  depth 
)
virtual

Definition at line 83 of file Water.cpp.

void Water::UpdateSurface ( Vec3 eyePos,
VertexSet vset 
)
virtual

Definition at line 234 of file Water.cpp.


Member Data Documentation

float Water::avgHeight
protected

Definition at line 42 of file Water.h.

float Water::depth
protected

Definition at line 40 of file Water.h.

DWORD Water::nVertices
protected

Definition at line 44 of file Water.h.

float Water::offsets[16]
protected

Definition at line 48 of file Water.h.

float Water::scaleTex
protected

Definition at line 41 of file Water.h.

float Water::size
protected

Definition at line 39 of file Water.h.

WATER_SURFACE* Water::surface
protected

Definition at line 46 of file Water.h.

float* Water::waves
protected

Definition at line 47 of file Water.h.


The documentation for this class was generated from the following files: