33 #ifdef G4VIS_BUILD_OPENGLXM_DRIVER
41 G4OpenGLImmediateXmViewer::
42 G4OpenGLImmediateXmViewer(G4OpenGLImmediateSceneHandler& sceneHandler,
44 :
G4VViewer (sceneHandler, sceneHandler.IncrementViewCount (), name),
45 G4OpenGLViewer (sceneHandler),
46 G4OpenGLXmViewer (sceneHandler),
47 G4OpenGLImmediateViewer (sceneHandler)
49 if (fViewId < 0)
return;
53 G4cerr <<
"G4OpenGLImmediateXmViewer::G4OpenGLImmediateXmViewer -"
54 " G4OpenGLXmViewer couldn't get a visual." <<
G4endl;
60 G4OpenGLImmediateXmViewer::~G4OpenGLImmediateXmViewer () {}
62 void G4OpenGLImmediateXmViewer::Initialise () {
64 CreateGLXContext (vi_immediate);
72 glDrawBuffer (GL_FRONT);
75 void G4OpenGLImmediateXmViewer::DrawView () {
79 #ifdef G4DEBUG_VIS_OGL
80 printf(
"G4OpenGLImmediateXmViewer::DrawView : \n");
88 #ifdef G4DEBUG_VIS_OGL
89 printf(
"G4OpenGLImmediateXmViewer::DrawView : change param\n");
98 #ifdef G4DEBUG_VIS_OGL
99 printf(
"G4OpenGLImmediateXmViewer::DrawView : need Kernel/Process/Finish\n");
107 void G4OpenGLImmediateXmViewer::FinishView () {
108 #ifdef G4DEBUG_VIS_OGL
109 printf(
"G4OpenGLImmediateXmViewer::FinishView : \n");