34 #ifdef G4VIS_BUILD_OPENGLX_DRIVER
42 G4OpenGLImmediateXViewer::
43 G4OpenGLImmediateXViewer (G4OpenGLImmediateSceneHandler& sceneHandler,
45 :
G4VViewer (sceneHandler, sceneHandler.IncrementViewCount (), name),
46 G4OpenGLViewer (sceneHandler),
47 G4OpenGLXViewer (sceneHandler),
48 G4OpenGLImmediateViewer (sceneHandler)
50 if (fViewId < 0)
return;
54 G4cerr <<
"G4OpenGLImmediateXViewer::G4OpenGLImmediateXViewer -"
55 " G4OpenGLXViewer couldn't get a visual." <<
G4endl;
61 G4OpenGLImmediateXViewer::~G4OpenGLImmediateXViewer () {}
63 void G4OpenGLImmediateXViewer::Initialise () {
65 CreateGLXContext (vi_immediate);
73 glDrawBuffer (GL_FRONT);
75 glDepthFunc (GL_LEQUAL);
76 glDepthMask (GL_TRUE);
79 void G4OpenGLImmediateXViewer::DrawView () {
101 void G4OpenGLImmediateXViewer::FinishView () {
G4GLOB_DLL std::ostream G4cerr