Download.it search icon
Advertisement

Configurable OpenGL demo simulating dynamic water surfaces with mouse-controlled ripples and adjustable resolution in compact package

Configurable OpenGL demo simulating dynamic water surfaces with mouse-controlled ripples and adjustable resolution in compact package

Vote: (6 votes)

Developer: MASMO

Created: 2003-05-20

MD5: 9b661bb11b4372acf4e045720412be71

Size: 350.9 KB

Vote

(6 votes)

Developer

MASMO

Created

2003-05-20

MD5

9b661bb11b4372acf4e045720412be71

Size

350.9 KB

The demo is configurable using the file "Water.ini." On my computer it results to be fluid thin to a definition of 200x200 points. The demo occupies 351Kbytes.

After the demo " Surface " has succeeded in creating the effect water. The demo is configurable using the file "Water.ini." On my computer it results to be fluid thin to a definition of 200x200 points. The demo occupies 351Kbytes.

Routine Description

AUX_RGBImageRec *LoadBMP(char *Filename) Loads a bitmap image (called by LoadGLTextures)

int LoadGLTextures() Load Bitmaps And Convert To Textures (Not used)

void Pressione(int x,int y,int fgocce) Create a pression in the mouse' position. It modify the array VID

void Traccia(void) It is the advancement of the automatic trace.

void LoadIni(void) Loads the file "Water.ini"

void CreaGrid(void) Sets the matrix BUF eand VID zero

void Gocce(void) Generate the drop on the water

void muovi(void) the water's movement

void Camera(void) Camera position

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