Note: FilePlanet is no longer being updated and is in the process of being archived.

AquaDemo (OpenGL Visual Demo)

File Info: AquaDemo (OpenGL Visual Demo)

Title:
AquaDemo (OpenGL Visual Demo)
Author:
MASMO
Created:
5/20/2003
Updated:
5/20/2003
Downloads:
 
User Rating

/5.0

Description: AquaDemo (OpenGL Visual Demo)

AquaDemo takes back the effect of the water, it adds a model for the rock and it adds some boulders that fall in water. The demo occupies 349Kbytes.


AquaDemo takes back the effect of the water, it adds a model for the rock and it adds some boulders that fall in water. The demo occupies 349Kbytes.

Routine Description
AUX_RGBImageRec *LoadBMP(char *Filename) Loads a bitmap image (called by LoadGLTextures)
int LoadGLTextures() Load Bitmaps And Convert To Textures (Not used)
Vector .... Vector Functions (used by Luce)
void Luce(double x, double y, double z,double dimensione,float r,float g,float b,float iox,float ioy,float ioz,int Tex) Adds a particle with:

x,y,z => Position

dimensione => Size

r,g,b => Color

iox,ioy,ioz => Camera Position

Tex => Texture Number



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
void CalcolaParticella(void) Calculates the position of the squirts
void DisegnaParticella(void) Draws the squirts
void InitSasso(void) Init the rock position
void MuoviSasso(void) Moves the rock
void DisegnaSasso(void) Draws the rock
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


Less Information
More Information »

Related Information

Featured Promotions

  • Monday Mod: Dead Island - Wardrop

    Dead Island - Wardrop Mod

    Turn Dead Island into a true zombie apocalypse and prepare to face over 100x more zombies, including enough ammo you need to fight them off.

  • Minecraft Creations Wallpaper

    Minecraft Creations Wallpaper

    These beautiful wallpapers are more than scenic shots of Minecraft, but actual in-game creations from its fan-base.