Fly (OpenGL Visual Demo)
Fly is a small demo that simulates a small airplane...
- Category Other
- Size 624.5 KB
- Program by MASMO
Fly (OpenGL Visual Demo)
Fly is a small demo that simulates a small airplane commanded by the keys cursor.
Fly is a small demo that simulates a small airplane commanded by the keys cursor. In the space they are present three objects, two flying islands and a dirigible. The models have been elaborated with TrueSpace and saved with MilkShape. Thanks to NeHe for the code that concerns the loading of the files MilkShape. The demo occupies 625Kbytes.
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