Tiny OpenGL demo showcasing experimental water surface simulation and grid-based wave movement for graphics enthusiasts
Tiny OpenGL demo showcasing experimental water surface simulation and grid-based wave movement for graphics enthusiasts
Vote: (20 votes)
Developer: MASMO
Created: 2003-05-20
MD5: 0257e8555e1d2dbd629423c4b6c20ce3
Size: 25 KB
Vote
(20 votes)
Developer
MASMO
Created
2003-05-20
MD5
0257e8555e1d2dbd629423c4b6c20ce3
Size
25 KB
Surface is an attempted water simulation with OpenGL.
Surface is a demo been born for error. I wanted to create the effect of the water, but something has not worked as owed!!! The demo occupies 26Kbytes.
Routine Description
void CalculateVectorNormal(GLfloat fVert1[], GLfloat fVert2[], GLfloat fVert3[], GLfloat *fNormalX, GLfloat *fNormalY, GLfloat *fNormalZ) Calculate the VectorNormal
void CreaGrid(void) Initialized the grid
void muovi(void) Moves each grid's point
GLvoid ReSizeGLScene(GLsizei width, GLsizei height)
int InitGL(GLvoid)
int DrawGLScene(GLvoid)
GLvoid KillGLWindow(GLvoid)
BOOL CreateGLWindow(char* title, int width, int height, int bits, bool fullscreenflag)
LRESULT CALLBACK WndProc(..)
int WINAPI WinMain(..)
These routines have been taken by the examples of NeHe