42 :
G4VViewer (sceneHandler, sceneHandler.IncrementViewCount (), name),
52 G4cerr <<
"G4OpenGLStoredXmViewer::G4OpenGLStoredXmViewer -"
53 " G4OpenGLXmViewer couldn't get a visual." <<
G4endl;
69 glDrawBuffer (GL_BACK);
74 printf(
"G4OpenGLStoredXmViewer::DrawView \n");
93 printf(
"G4OpenGLStoredXmViewer::DrawView () flush\n");
104#ifdef G4DEBUG_VIS_OGL
105 printf(
"G4OpenGLStoredXmViewer::DrawView not hlr \n");
109 if (!kernelVisitWasNeeded) {
110#ifdef G4DEBUG_VIS_OGL
111 printf(
"G4OpenGLStoredXmViewer::ComputeView Don't need kernel Visit \n");
116#ifdef G4DEBUG_VIS_OGL
117 printf(
"G4OpenGLStoredXmViewer::ComputeView Need kernel Visit \n");
121 if (
fVP.IsCutaway() &&
132#ifdef G4DEBUG_VIS_OGL
133 printf(
"G4OpenGLStoredXmViewer::DrawView ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n");
143#ifdef G4DEBUG_VIS_OGL
144 printf(
"G4OpenGLStoredXmViewer::FinishView () flush \n");
149 glGetIntegerv(GL_RENDER_MODE, &renderMode);
150 if (renderMode == GL_RENDER) glXSwapBuffers (
dpy,
win);
G4GLOB_DLL std::ostream G4cerr
G4OpenGLStoredViewer(G4OpenGLStoredSceneHandler &scene)
void KernelVisitDecision()
virtual ~G4OpenGLStoredXmViewer()
G4OpenGLStoredXmViewer(G4OpenGLStoredSceneHandler &scene, const G4String &name="")
friend class G4OpenGLStoredSceneHandler
virtual void CreateFontLists()
G4OpenGLViewer(G4OpenGLSceneHandler &scene)
void CreateGLXContext(XVisualInfo *vi)
G4OpenGLXmViewer(G4OpenGLSceneHandler &scene)
virtual void CreateMainWindow()
const G4ViewParameters & GetViewParameters() const
G4VViewer(G4VSceneHandler &, G4int id, const G4String &name="")
DrawingStyle GetDrawingStyle() const