Download.it search icon
Advertisement

Retro OpenGL demo recreating classic 32x32 matrix fire effect, showcasing color gradients and source-code for learning

Retro OpenGL demo recreating classic 32x32 matrix fire effect, showcasing color gradients and source-code for learning

Vote: (13 votes)

Developer: MASMO

Created: 2003-05-20

MD5: 839a3f3b0688fcef0e7bd9a5549281a6

Size: 28.3 KB

Vote

(13 votes)

Developer

MASMO

Created

2003-05-20

MD5

839a3f3b0688fcef0e7bd9a5549281a6

Size

28.3 KB

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