Surface (OpenGL Visual Demo)
Surface is an attempted water simulation with OpenGL...
- Category Technology Demos
- Size 25 KB
- Program by MASMO
Surface (OpenGL Visual Demo)
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