34 #ifdef G4VIS_BUILD_OPENGLXM_DRIVER
42 G4OpenGLImmediateXmViewer::
43 G4OpenGLImmediateXmViewer(G4OpenGLImmediateSceneHandler& sceneHandler,
45 :
G4VViewer (sceneHandler, sceneHandler.IncrementViewCount (), name),
46 G4OpenGLViewer (sceneHandler),
47 G4OpenGLXmViewer (sceneHandler),
48 G4OpenGLImmediateViewer (sceneHandler)
50 if (fViewId < 0)
return;
54 G4cerr <<
"G4OpenGLImmediateXmViewer::G4OpenGLImmediateXmViewer -"
55 " G4OpenGLXmViewer couldn't get a visual." <<
G4endl;
61 G4OpenGLImmediateXmViewer::~G4OpenGLImmediateXmViewer () {}
63 void G4OpenGLImmediateXmViewer::Initialise () {
65 CreateGLXContext (vi_immediate);
73 glDrawBuffer (GL_FRONT);
76 void G4OpenGLImmediateXmViewer::DrawView () {
80 #ifdef G4DEBUG_VIS_OGL
81 printf(
"G4OpenGLImmediateXmViewer::DrawView : \n");
89 #ifdef G4DEBUG_VIS_OGL
90 printf(
"G4OpenGLImmediateXmViewer::DrawView : change param\n");
99 #ifdef G4DEBUG_VIS_OGL
100 printf(
"G4OpenGLImmediateXmViewer::DrawView : need Kernel/Process/Finish\n");
108 void G4OpenGLImmediateXmViewer::FinishView () {
109 #ifdef G4DEBUG_VIS_OGL
110 printf(
"G4OpenGLImmediateXmViewer::FinishView : \n");
printf("%d Experimental points found\n", nlines)
G4GLOB_DLL std::ostream G4cerr