OpenGLWindow.h

Go to the documentation of this file.
00001 /* -*- mode: c++ -*-
00002  *
00003  * Hippo OpenGLView class interface
00004  *
00005  */
00006 
00007 #ifndef Hippo_OpenGLWindow_h
00008 #define Hippo_OpenGLWindow_h
00009 
00010 // Inheritance :
00011 #include "OpenGL/OpenGLView.h"
00012 
00013 #include <X11/Xlib.h>
00014 #include <GL/glx.h>
00015 
00023 class OpenGLWindow : public OpenGLView {
00024 public:
00025   OpenGLWindow ( Display*,Colormap,XVisualInfo*,GLXContext );
00026   virtual ~OpenGLWindow ();
00027   void flush();
00028   Window window() const;
00029   void resize(int,int);
00030 private:
00031   void paint();
00032 private:
00033   Display* m_display;
00034   Colormap m_colormap;
00035   XVisualInfo* m_vinfo;
00036   GLXContext m_ctx;
00037   Window m_window;
00038   int m_width;
00039   int m_height;
00040 };
00041 
00042 
00043 #endif // Hippo_OpenGLWindow_h

Generated for HippoDraw Class Library by doxygen