Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
OpenGL
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
Generated for HippoDraw Class Library by