Files Classes Functions Hierarchy
#include <buttonpanel01test.h>
Public Member Functions | |
| buttonpanel01test (int argc, char **argv) | |
| ~buttonpanel01test () | |
Static Public Member Functions | |
| static void | keyboard01 (unsigned char key, int x, int y) |
| Default keyboard handler - ESC to quit. | |
| static void | display01 () |
| Displays the gobj::global with double buffering. | |
Public Attributes | |
| gobjContainer | xGraphics |
| Global graphics stream. | |
| zpr * | zz |
| zprmouse * | zm |
| buttonpanel01 * | bp |
Static Public Attributes | |
| static string | doc [] |
| Brief description of each test. | |
Definition at line 10 of file buttonpanel01test.h.
| buttonpanel01test::buttonpanel01test | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 53 of file buttonpanel01test.cpp.
References bp, display01(), gobjpush, keyboard01(), gobjContainer::set(), zpr::update(), xGraphics, zm, and zz.
00054 : xGraphics(true) 00055 { 00056 glutInit(&argc,argv); 00057 glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH); 00058 glutInitWindowSize(800,600); 00059 glutCreateWindow(""); 00060 glutDisplayFunc(buttonpanel01test::display01); 00061 glutKeyboardFunc(buttonpanel01test::keyboard01); 00062 00063 OpenGLinitialisation(); 00064 00065 glEnable(GL_DEPTH_TEST); 00066 glEnable(GL_CULL_FACE); 00067 glEnable(GL_NORMALIZE); 00068 00069 xGraphics.set(); 00070 00071 gobjpush(new myaxes(1.0)); 00072 00073 commandline cmd(argc,argv); 00074 00075 zz = new zpr(); 00076 zz->update(); 00077 00078 zm = new zprmouse(*zz); 00079 bp = new buttonpanel01(zm); 00080 00081 gobjpush(bp); 00082 00083 glutMainLoop(); 00084 }
| buttonpanel01test::~buttonpanel01test | ( | ) |
| void buttonpanel01test::display01 | ( | ) | [static] |
Displays the gobj::global with double buffering.
Definition at line 29 of file buttonpanel01test.cpp.
References gobjContainer::draw(), glerrordisplay(), and gobj::global.
Referenced by buttonpanel01test().
00030 { 00031 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 00032 00033 assert(gobj::global); 00034 00035 gobj::global->draw(); 00036 00037 glerrordisplay(); 00038 00039 glutSwapBuffers(); 00040 }
| void buttonpanel01test::keyboard01 | ( | unsigned char | key, | |
| int | x, | |||
| int | y | |||
| ) | [static] |
Default keyboard handler - ESC to quit.
Definition at line 13 of file buttonpanel01test.cpp.
Referenced by buttonpanel01test().
00018 { 00019 switch (key) 00020 { 00021 case 27: exit(0); break; 00022 } 00023 00024 glutPostRedisplay(); 00025 }
Definition at line 29 of file buttonpanel01test.h.
Referenced by buttonpanel01test(), and ~buttonpanel01test().
string buttonpanel01test::doc [static] |
Initial value:
{
"",
"- buttonpanel01test Prob: buttons and coord transforms."
}
Definition at line 15 of file buttonpanel01test.h.
Referenced by main().
Global graphics stream.
Definition at line 18 of file buttonpanel01test.h.
Referenced by buttonpanel01test().
Definition at line 27 of file buttonpanel01test.h.
Referenced by buttonpanel01test(), and ~buttonpanel01test().
Definition at line 25 of file buttonpanel01test.h.
Referenced by buttonpanel01test(), and ~buttonpanel01test().
1.5.8