33#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");
89 printf(
"G4OpenGLImmediateXmViewer::DrawView : change param\n");
99 printf(
"G4OpenGLImmediateXmViewer::DrawView : need Kernel/Process/Finish\n");
107void G4OpenGLImmediateXmViewer::FinishView () {
108#ifdef G4DEBUG_VIS_OGL
109 printf(
"G4OpenGLImmediateXmViewer::FinishView : \n");
G4GLOB_DLL std::ostream G4cerr
const char * name(G4int ptype)