Files Classes Functions Hierarchy
#include <cassert>#include <string>#include <GL/glut.h>#include <GL/gl.h>#include <print.h>
Go to the source code of this file.
Classes | |
| class | myglutgui |
| OpenGL Glut window. More... | |
Functions | |
| void | myglutguikeyboard (unsigned char key, int x, int y) |
| Forwards to myglutgui::global->keyboard. | |
| void | myglutguidisplay () |
| Forwards to myglutgui::global->display. | |
| void myglutguidisplay | ( | ) |
Forwards to myglutgui::global->display.
Definition at line 32 of file myglutgui.cpp.
References myglutgui::display().
Referenced by myglutgui::myglutgui().
00033 { 00034 myglutgui* g = myglutgui::global; 00035 if (g==0) 00036 { 00037 cout << "error: myglutgui::global==0" << endl; 00038 cout << " Call globalSet(); in derived constructor" << endl << endl; 00039 return; 00040 } 00041 00042 g->display(); 00043 }
| void myglutguikeyboard | ( | unsigned char | key, | |
| int | x, | |||
| int | y | |||
| ) |
Forwards to myglutgui::global->keyboard.
Definition at line 19 of file myglutgui.cpp.
References myglutgui::keyboard().
Referenced by myglutgui::myglutgui().
00020 { 00021 myglutgui* g = myglutgui::global; 00022 if (g==0) 00023 { 00024 cout << "error: myglutgui::global==0" << endl; 00025 cout << " Call globalSet(); in derived constructor" << endl << endl; 00026 return; 00027 } 00028 00029 g->keyboard(key,x,y); 00030 }
1.5.8