OpenGLWindow.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*-
2  *
3  * Hippo OpenGLView class interface
4  *
5  */
6 
7 #ifndef Hippo_OpenGLWindow_h
8 #define Hippo_OpenGLWindow_h
9 
10 // Inheritance :
11 #include "OpenGL/OpenGLView.h"
12 
13 #include <X11/Xlib.h>
14 #include <GL/glx.h>
15 
23 class OpenGLWindow : public OpenGLView {
24 public:
25  OpenGLWindow ( Display*,Colormap,XVisualInfo*,GLXContext );
26  virtual ~OpenGLWindow ();
27  void flush();
28  Window window() const;
29  void resize(int,int);
30 private:
31  void paint();
32 private:
33  Display* m_display;
34  Colormap m_colormap;
35  XVisualInfo* m_vinfo;
36  GLXContext m_ctx;
37  Window m_window;
38  int m_width;
39  int m_height;
40 };
41 
42 
43 #endif // Hippo_OpenGLWindow_h
OpenGLWindow(Display *, Colormap, XVisualInfo *, GLXContext)
XVisualInfo * m_vinfo
Definition: OpenGLWindow.h:35
The window class using OpenGL.
Definition: OpenGLWindow.h:23
GLXContext m_ctx
Definition: OpenGLWindow.h:36
Window m_window
Definition: OpenGLWindow.h:37
The ViewBase class using OpenGL for drawing.
Definition: OpenGLView.h:26
virtual ~OpenGLWindow()
Window window() const
Colormap m_colormap
Definition: OpenGLWindow.h:34
Display * m_display
Definition: OpenGLWindow.h:33
void resize(int, int)

Generated for HippoDraw Class Library by doxygen