Back to index

supertuxkart  0.5+dfsg1
Defines | Functions
GlutStuff.h File Reference
#include <GL/glut.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define btglLoadMatrix   glLoadMatrixf
#define btglMultMatrix   glMultMatrixf
#define btglColor3   glColor3f
#define btglVertex3   glVertex3d

Functions

int glutmain (int argc, char **argv, int width, int height, const char *title, DemoApplication *demoApp)

Define Documentation

#define btglColor3   glColor3f

Definition at line 48 of file GlutStuff.h.

#define btglLoadMatrix   glLoadMatrixf

Definition at line 46 of file GlutStuff.h.

#define btglMultMatrix   glMultMatrixf

Definition at line 47 of file GlutStuff.h.

#define btglVertex3   glVertex3d

Definition at line 49 of file GlutStuff.h.


Function Documentation

int glutmain ( int  argc,
char **  argv,
int  width,
int  height,
const char *  title,
DemoApplication demoApp 
)

Definition at line 69 of file GlutStuff.cpp.

                                                                                                    {
    
       gDemoApplication = demoApp;

       glutInit(&argc, argv);
    glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH);
    glutInitWindowPosition(0, 0);
    glutInitWindowSize(width, height);
    glutCreateWindow(title);
#ifdef BT_USE_FREEGLUT
       glutSetOption (GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINLOOP_RETURNS);
#endif

    gDemoApplication->myinit();

       glutKeyboardFunc(glutKeyboardCallback);
       glutSpecialFunc(glutSpecialKeyboardCallback);
       glutSpecialUpFunc(glutSpecialKeyboardUpCallback);

       glutReshapeFunc(glutReshapeCallback);
    //createMenu();
       glutIdleFunc(glutMoveAndDisplayCallback);
       glutMouseFunc(glutMouseFuncCallback);
       glutMotionFunc(glutMotionFuncCallback);
       glutDisplayFunc( glutDisplayCallback );

       glutMoveAndDisplayCallback();
       
    glutMainLoop();
    return 0;
}

Here is the call graph for this function: