1 #ifndef EMPTY_GLUT_H 2 #define EMPTY_GLUT_H 3 4 #include <GL/gl.h> 5 #include <GL/glu.h> 6 7 8 #define GLUT_KEY_F1 0 9 #define GLUT_KEY_F2 1 10 #define GLUT_KEY_END 2 11 #define GLUT_KEY_LEFT 3 12 #define GLUT_KEY_RIGHT 4 13 #define GLUT_KEY_UP 5 14 #define GLUT_KEY_DOWN 6 15 #define GLUT_KEY_PAGE_UP 7 16 #define GLUT_KEY_PAGE_DOWN 8 17 #define GLUT_KEY_HOME 9 18 #define GLUT_KEY_F3 10 19 #define GLUT_KEY_F4 11 20 #define GLUT_KEY_F5 12 21 #define GLUT_ACTIVE_SHIFT 13 22 23 24 #define GLUT_DOUBLE 1 25 #define GLUT_RGBA 2 26 #define GLUT_DEPTH 4 27 #define GLUT_STENCIL 8 28 #define GLUT_WINDOW_WIDTH 16 29 #define GLUT_WINDOW_HEIGHT 32 30 #define GLUT_RGB 64 31 32 33 34 35 inline void glutSwapBuffers() {} 36 inline void glutShowWindow() {} 37 inline void glutPostRedisplay() {} 38 inline void glutInit(int *argc, char **argv) {} 39 inline void glutInitDisplayMode( unsigned int ) {} 40 inline void glutInitWindowPosition(int x, int y) {} 41 inline void glutInitWindowSize(int x, int y) {} 42 inline int glutCreateWindow( const char *str) {return 0;} 43 inline void glutKeyboardFunc( void (*func)(unsigned char, int ,int ) ) {} 44 inline void glutSpecialFunc( void (*func)(int key, int x,int y) ) {} 45 inline void glutSpecialUpFunc( void (*func)(int key, int x,int y) ) {} 46 inline void glutReshapeFunc( void (*func)(int w,int h) ) {} 47 inline void glutDisplayFunc( void (*func)() ) {} 48 inline void glutIdleFunc( void (*func)() ) {} 49 inline void glutMotionFunc( void (*func)(int x,int y) ) {} 50 inline void glutMouseFunc( void (*func)(int button,int state,int x,int y) ) {} 51 inline void glutMainLoop() {} 52 inline void glutSetWindow(int bla) {} 53 54 inline void glutSolidCube(GLfloat ) {} 55 inline void glutSolidSphere(GLfloat , int a , int b) {} 56 inline void glutSolidCone(GLfloat ,GLfloat , int a , int b) {} 57 inline int glutGetModifiers() { return 0;} 58 inline void gluPerspective(float a,float b,float c,float d) {} 59 inline float glutGet(int code) { return 0.f;} 60 #endif 61