34 #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");
84 glXMakeCurrent (dpy, win, cx);
91 #ifdef G4DEBUG_VIS_OGL
92 printf(
"G4OpenGLImmediateXmViewer::DrawView : change param\n");
101 #ifdef G4DEBUG_VIS_OGL
102 printf(
"G4OpenGLImmediateXmViewer::DrawView : need Kernel/Process/Finish\n");
110 void G4OpenGLImmediateXmViewer::FinishView () {
111 #ifdef G4DEBUG_VIS_OGL
112 printf(
"G4OpenGLImmediateXmViewer::FinishView : \n");