33 #ifdef G4VIS_BUILD_OPENGLX_DRIVER
41 G4OpenGLImmediateXViewer::
42 G4OpenGLImmediateXViewer (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;
60 G4OpenGLImmediateXViewer::~G4OpenGLImmediateXViewer () {}
62 void G4OpenGLImmediateXViewer::Initialise () {
64 CreateGLXContext (vi_immediate);
72 glDrawBuffer (GL_FRONT);
74 glDepthFunc (GL_LEQUAL);
75 glDepthMask (GL_TRUE);
78 void G4OpenGLImmediateXViewer::DrawView () {
100 void G4OpenGLImmediateXViewer::FinishView () {