Main Page | Namespace List | Class List | File List | Class Members | File Members

water.h

Go to the documentation of this file.
00001 //
00002 // Functions to create and draw a height field
00003 //
00004 #include <vector>
00005 
00007 void initWater( int W, int H );
00008 
00010 
00011 void computeWater( float fTime );
00012 
00013 
00014 // Helper structure, holds everything required
00015 // to draw a single quad of the water surface
00016 struct _S_WaterQuad
00017 {
00018   // Height field position
00019   int x; int y;
00020   // Object space vertex position of the (x+0, y+0) corner 
00021   float xp; float yp;
00022 };
00023 
00025 void drawWaterQuads( const std::vector<_S_WaterQuad> &Qs );

Generated on Thu Jan 20 02:46:58 2005 for Main_Demo by doxygen 1.3.6