00001 #ifndef MESA_ONSCREEN_H 00002 #define MESA_ONSCREEN_H 00003 00004 #include "mimasconfig.h" 00005 00006 #ifdef HAVE_OPENGL 00007 00008 #include "mesa_base.h" 00009 #include "x11_window.h" 00010 00011 namespace mimas { 00012 00040 class mesa_onscreen: public mesa_base 00041 { 00042 public: 00046 mesa_onscreen( x11_window *_window ) throw (mimasexception); 00050 virtual ~mesa_onscreen(void); 00053 virtual void finish(void); 00056 virtual void ortho2D( int x1, int y1, int x2, int y2 ) const; 00059 virtual void ortho2D(void) const; 00060 protected: 00062 x11_window *window; 00064 GLXContext context; 00066 bool finishOnScreen; 00067 }; 00068 00069 }; 00070 00071 #endif 00072 00073 #endif 00074