Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
OpenGL
OpenGLApp.h
Go to the documentation of this file.
1
#ifndef Hippo_OpenGLApp_h
2
#define Hippo_OpenGLApp_h
3
4
#include <X11/Xlib.h>
5
#include <GL/glx.h>
6
#include <vector>
7
16
class
OpenGLWindow
;
17
18
class
OpenGLApp
{
19
public
:
20
OpenGLApp
();
21
~OpenGLApp
();
22
bool
initialize
(
int
argc = 0,
char
** argv = 0);
23
int
exec
();
24
Display*
getXDisplay
();
25
Colormap
getXColormap
();
26
XVisualInfo*
getXVisualInfo
();
27
GLXContext
getGLXContext
();
28
public
:
29
std::vector<OpenGLWindow*>
fViews
;
30
private
:
31
OpenGLWindow
*
findView
(Window)
const
;
32
private
:
33
Display*
m_display
;
34
Colormap
m_colormap
;
35
XVisualInfo*
m_vinfo
;
36
GLXContext
m_ctx
;
37
bool
m_privateColormap
;
38
};
39
40
#endif // OpenGLApp_H
Generated for HippoDraw Class Library by