Download.it search icon
Advertisement

Lightweight OpenGL demo letting you pilot a small airplane around floating islands and a blimp via cursor keys

Lightweight OpenGL demo letting you pilot a small airplane around floating islands and a blimp via cursor keys

Vote: (17 votes)

Developer: MASMO

Created: 2003-05-20

MD5: 551f069ce167c905740d731e79f90f4f

Size: 624.5 KB

Vote

(17 votes)

Developer

MASMO

Created

2003-05-20

MD5

551f069ce167c905740d731e79f90f4f

Size

624.5 KB

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