42 :
G4VViewer (sceneHandler, sceneHandler.IncrementViewCount (), name),
51 G4cerr <<
"G4OpenGLStoredXViewer::G4OpenGLStoredXViewer -"
52 " G4OpenGLXViewer couldn't get a visual." <<
G4endl;
62 printf(
"G4OpenGLStoredXViewer::Initialise\n");
70 glDrawBuffer (GL_BACK);
76 printf(
"G4OpenGLStoredXViewer::DrawView\n");
95 printf(
"G4OpenGLStoredXViewer::DrawView flush \n");
105 if (!kernelVisitWasNeeded) {
106#ifdef G4DEBUG_VIS_OGL
107 printf(
"G4OpenGLStoredXViewer::DrawView NO need kernel visit\n");
113#ifdef G4DEBUG_VIS_OGL
114 printf(
"G4OpenGLStoredXViewer::DrawView NEED kernel visit\n");
133#ifdef G4DEBUG_VIS_OGL
134 printf(
"G4OpenGLStoredXViewer::FinishView\n");
142#ifdef G4DEBUG_VIS_OGL
143 printf(
"G4OpenGLStoredXViewer::FinishView flush \n");
148 glGetIntegerv(GL_RENDER_MODE, &renderMode);
149 if (renderMode == GL_RENDER) glXSwapBuffers (
dpy,
win);
G4GLOB_DLL std::ostream G4cerr
void KernelVisitDecision()
G4OpenGLStoredXViewer(G4OpenGLStoredSceneHandler &scene, const G4String &name="")
virtual ~G4OpenGLStoredXViewer()
void CreateGLXContext(XVisualInfo *vi)
virtual void CreateFontLists()
virtual void CreateMainWindow()
const G4ViewParameters & GetViewParameters() const
CutawayMode GetCutawayMode() const
DrawingStyle GetDrawingStyle() const