Mare (OpenGL Visual Demo)
The demo visualizes the writing OPENGL that floats on the...
- Category Technology Demos
- Size 216.1 KB
- Program by MASMO
Mare (OpenGL Visual Demo)
The demo visualizes the writing OPENGL that floats on the water. You can change the colors, the effect transparency and the visualization mode. The demo occupies 216Kbytes.
Yes... another effect with the water. The demo visualizes the writing OPENGL that floats on the water. You can change the colors, the effect transparency and the visualization mode. The demo occupies 216Kbytes.
Routine Description
AUX_RGBImageRec *LoadBMP(char *Filename) Loads a bitmap image (called by LoadGLTextures)
int LoadGLTextures() Load Bitmaps And Convert To Textures
void galleggia(void) Calculate the float of the text Opengl
void loadini(void) Load the definition file (mare.ini)
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 CreaGrid(void) Sets the matrix BUF eand VID zero
void muovi(void) The water's movement
int DrawGLScene(GLvoid) Visualizzation modes:
0) Texture Mode (Each QUAD have a texture)
1) Color Mode (No Texture)
2) Disable the Blend
3) Enable Lighting and calculate the normals. Don't work.. Why? Is the normal calculation?... :(((
GLvoid ReSizeGLScene(GLsizei width, GLsizei height)
int InitGL(GLvoid)
GLvoid KillGLWindow(GLvoid)
BOOL CreateGLWindow(char* title, int width, int height, int bits, bool fullscreenflag)
LRESULT CALLBACK WndProc(..)
int WINAPI WinMain(..)
The Asteroid is an Milkshape Object (see Nehe Web Pages)
These routines have been taken by the examples of NeHe