proj home

Files   Classes   Functions   Hierarchy  

menusystemtest03 Class Reference

Configuration menu. More...

#include <menusystemtest03.h>

Collaboration diagram for menusystemtest03:

List of all members.

Public Member Functions

 menusystemtest03 (int argc, char **argv)
 Main program.

Static Public Member Functions

static void keyboard (unsigned char key, int x, int y)
 Keyboard handler.
static void display ()
 Displays gobj::global .

Static Public Attributes

static menusystemroot = 0
 The menu is contained as a composite member.
static string doc []
 Brief description of each test.


Detailed Description

Configuration menu.

Definition at line 40 of file menusystemtest03.h.


Constructor & Destructor Documentation

menusystemtest03::menusystemtest03 ( int  argc,
char **  argv 
)

Main program.

Definition at line 138 of file menusystemtest03.cpp.

References menusystem::addsubmenu(), menusystem::currentset(), display(), gobjpush, keyboard(), root, gobjContainer::set(), and zpr::update().

00139 {
00140   mypart = menusystemtest03part("xg769-t3",22,7.2);
00141 
00142   glutInit(&argc,argv);
00143   glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
00144   glutInitWindowSize(800,600);
00145   glutCreateWindow("");
00146   glutDisplayFunc(display);
00147   glutKeyboardFunc(keyboard);
00148 
00149   OpenGLinitialisation();
00150 
00151   glEnable(GL_DEPTH_TEST);
00152   glEnable(GL_CULL_FACE);
00153   glEnable(GL_NORMALIZE);
00154 
00155   xGraphics.set();
00156 
00157   root = new menusystemtest03Main();
00158   //root->fontcolor = point4<float>(1.0,0.0,0.0,0.8);
00159 
00160   menusystem * m = new menusystemtest03Config(mypart);
00161   root->addsubmenu(m);
00162   root->currentset();
00163   
00164   gobjpush(new gobjglDisable(GL_LIGHTING));
00165   gobjpush(root);
00166 
00167   zpr zz;
00168   zz.update();
00169 
00170   glutMainLoop();
00171 }


Member Function Documentation

void menusystemtest03::display (  )  [static]

Displays gobj::global .

Definition at line 173 of file menusystemtest03.cpp.

References gobjContainer::draw(), glerrordisplay(), and gobj::global.

Referenced by menusystemtest03().

00174 { 
00175   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
00176 
00177   gobj::global->draw();
00178 
00179   glerrordisplay();
00180   
00181   glutSwapBuffers();
00182 }

void menusystemtest03::keyboard ( unsigned char  key,
int  x,
int  y 
) [static]

Keyboard handler.

Definition at line 185 of file menusystemtest03.cpp.

Referenced by menusystemtest03().

00190 {
00191   assert(root!=0);
00192   root->read(key);
00193 }


Member Data Documentation

string menusystemtest03::doc [static]

Initial value:

{ 
  "",
  "Configuration menu"
}
Brief description of each test.

Definition at line 52 of file menusystemtest03.h.

Referenced by main().

The menu is contained as a composite member.

Definition at line 49 of file menusystemtest03.h.

Referenced by menusystemtest03().


The documentation for this class was generated from the following files:

Generated on Fri Mar 4 00:50:06 2011 for Chelton Evans Source by  doxygen 1.5.8