Stanze (OpenGL Visual Demo)
This demo is composed an editor through which you can draw...
- Category Other
- Size 662.6 KB
- Program by MASMO
Stanze (OpenGL Visual Demo)
This demo is composed an editor through which you can draw the map and the code in c++ to load the map.
This demo is composed by the editor through which you can draw the map and the code in c++ to load the map. The file .zip contains the editor that I have written using the visual basic 6.0 and a small demo written in c++. The demo occupies 662Kbytes.
Routine Description
AUX_RGBImageRec *LoadBMP(char *Filename) Loads a bitmap image (called by LoadGLTextures)
int LoadGLTextures() Load Bitmaps And Convert To Textures
void glPrint(char *ll,float x,float y,float z,float dim,float dir,float r,float g,float b) My routine for print with opengl :
Char *ll => the line
x,y,z => the coordinates
dim => the font dimension
dir => not used for now
r,g,b => the color
void Render(void) Shows the floor and the walls
int Init(void) Initializes the variables and load the map
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(..)
The Asteroid is an Milkshape Object (see Nehe Web Pages)
These routines have been taken by the examples of NeHe