Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

glui_internal_control.h

Go to the documentation of this file.
00001 /*
00002  Header file for use by GLUI controls.  
00003  Everything you need is right here.
00004 
00005 
00006 */
00007 #ifndef __GLUI_INTERNAL_CONTROL_H
00008 #define __GLUI_INTERNAL_CONTROL_H
00009 
00010 /* This is the main GLUI external header */
00011 #include "GL/glui.h"
00012 
00013 /* Here's some utility routines */
00014 #include "glui_internal.h"
00015 
00016 
00023 class GLUI_DrawingSentinal {
00024         int orig_buf, orig_win;
00025         GLUI_Control *c;
00026 public:
00028         GLUI_DrawingSentinal(GLUI_Control *c_);
00030         ~GLUI_DrawingSentinal();
00031         
00032         // Do-nothing routine to avoid compiler warning about unused variable
00033         inline void avoid_warning(void) {}
00034 };
00039 #define GLUI_DRAWINGSENTINAL_IDIOM  if (NOT can_draw()) return; GLUI_DrawingSentinal drawSentinal(this); drawSentinal.avoid_warning();
00040 
00041 
00043 inline double GLUI_Time(void) {return 0.001*glutGet(GLUT_ELAPSED_TIME);}
00044 
00045 #endif

Generated on Fri Sep 15 17:51:57 2006 for GLUI by doxygen 1.3.6