34 #ifdef G4VIS_BUILD_OPENGLX_DRIVER
36 #ifndef G4OPENGLXVIEWER_HH
37 #define G4OPENGLXVIEWER_HH
42 #include <X11/Intrinsic.h>
47 class G4OpenGLSceneHandler;
50 class G4OpenGLXViewer:
virtual public G4OpenGLViewer {
52 friend class G4OpenGLXViewerMessenger;
53 friend class G4OpenGLXmViewer;
56 G4OpenGLXViewer (G4OpenGLSceneHandler& scene);
57 virtual ~G4OpenGLXViewer ();
60 void DrawText(
const G4Text&);
63 void GetXConnection ();
64 void CreateGLXContext (XVisualInfo* vi);
65 virtual void CreateMainWindow ();
66 virtual void CreateFontLists ();
68 static int snglBuf_RGBA[12];
69 static int dblBuf_RGBA[13];
73 XWindowAttributes xwa;
75 static XVisualInfo *vi_single_buffer;
76 static XVisualInfo *vi_double_buffer;
77 XVisualInfo *vi_immediate,
81 XSetWindowAttributes swa;
90 XSizeHints *norm_hints;
92 XClassHint *class_hints;
94 XSizeHints *size_hints;
96 XTextProperty windowName,
98 char charViewName [100];
102 G4OpenGLXViewer (
const G4OpenGLXViewer&);
103 G4OpenGLXViewer& operator = (
const G4OpenGLXViewer&);