proj home

Files   Classes   Functions   Hierarchy  

openwindowresource.cpp File Reference

#include <openwindowresource.h>
#include <GL/glut.h>
#include <GL/gl.h>
#include <zpr.h>
#include <gobj.h>
#include <graphmisc.h>

Include dependency graph for openwindowresource.cpp:

Go to the source code of this file.

Functions

void keyboard (unsigned char key, int x, int y)
void display ()

Variables

gobjContainer xGraphics


Function Documentation

void display (  ) 

Definition at line 26 of file openwindowresource.cpp.

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

Referenced by main(), openwindowresource::openwindowresource(), test01(), and test02().

00027 { 
00028   glPushMatrix(); // save
00029   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
00030 
00031   axes(1.0);
00032 
00033   gobj::global->draw();
00034 
00035   glerrordisplay();
00036   
00037   glutSwapBuffers();
00038   glPopMatrix();  // restore
00039 }

void keyboard ( unsigned char  key,
int  x,
int  y 
)

Definition at line 15 of file openwindowresource.cpp.

Referenced by main(), openwindowresource::openwindowresource(), test01(), test02(), and test03().

00016 {
00017   switch (key)
00018   {
00019     case 27:
00020       exit(0);
00021       break;
00022 
00023   }
00024 }


Variable Documentation


Generated on Fri Mar 4 00:49:33 2011 for Chelton Evans Source by  doxygen 1.5.8