34#ifdef G4VIS_BUILD_OPENGLX_DRIVER
41G4OpenGLImmediateXViewer::
42G4OpenGLImmediateXViewer (G4OpenGLImmediateSceneHandler& sceneHandler,
44 :
G4VViewer (sceneHandler, sceneHandler.IncrementViewCount (), name),
45 G4OpenGLViewer (sceneHandler),
46 G4OpenGLXViewer (sceneHandler),
47 G4OpenGLImmediateViewer (sceneHandler)
49 if (fViewId < 0)
return;
53 G4cerr <<
"G4OpenGLImmediateXViewer::G4OpenGLImmediateXViewer -"
54 " G4OpenGLXViewer couldn't get a visual." <<
G4endl;
60G4OpenGLImmediateXViewer::~G4OpenGLImmediateXViewer () {}
62void G4OpenGLImmediateXViewer::Initialise () {
64 CreateGLXContext (vi_immediate);
72 glDrawBuffer (GL_FRONT);
74 glDepthFunc (GL_LEQUAL);
75 glDepthMask (GL_TRUE);
78void G4OpenGLImmediateXViewer::DrawView () {
83 glXMakeCurrent (dpy, win, cx);
103void G4OpenGLImmediateXViewer::FinishView () {
G4DLLIMPORT std::ostream G4cerr