Fire (OpenGL Visual Demo)
Fire is a small demo that visualizes on screen an effect...
- Category Other
- Size 28.3 KB
- Program by MASMO
Fire (OpenGL Visual Demo)
Fire is a small demo that visualizes on screen an effect very used in the nineties.
Fire is a small demo that visualizes on screen an effect very used in the nineties. The effect is created on a matrix of 32x32 elements and then every point of the matrix visualized to screen as a polygon. The demo 29Kbytes.
Routine Description
AUX_RGBImageRec *LoadBMP(char *Filename) Loads a bitmap image (called by LoadGLTextures)
int LoadGLTextures() Load Bitmaps And Convert To Textures (Not used)
COL Colore(float k) Return the color in rgb (black->red->Yellow->White)
void ShowFire(float x,float y,float z,float dim) Trasform the matrix 32x32 in polygon
void Fuoco(void) The fire effect in a matrix 32x32
void InitFire(void) Set the matrix 32x32 to zero
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