34#ifdef G4VIS_BUILD_OPENGLXM_DRIVER
41G4OpenGLImmediateXmViewer::
42G4OpenGLImmediateXmViewer(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;
60G4OpenGLImmediateXmViewer::~G4OpenGLImmediateXmViewer () {}
62void G4OpenGLImmediateXmViewer::Initialise () {
64 CreateGLXContext (vi_immediate);
72 glDrawBuffer (GL_FRONT);
75void G4OpenGLImmediateXmViewer::DrawView () {
80 printf(
"G4OpenGLImmediateXmViewer::DrawView : \n");
84 glXMakeCurrent (dpy, win, cx);
92 printf(
"G4OpenGLImmediateXmViewer::DrawView : change param\n");
101#ifdef G4DEBUG_VIS_OGL
102 printf(
"G4OpenGLImmediateXmViewer::DrawView : need Kernel/Process/Finish\n");
110void G4OpenGLImmediateXmViewer::FinishView () {
111#ifdef G4DEBUG_VIS_OGL
112 printf(
"G4OpenGLImmediateXmViewer::FinishView : \n");
G4DLLIMPORT std::ostream G4cerr