33#ifdef G4VIS_BUILD_OPENGLWIN32_DRIVER
40G4OpenGLImmediateWin32Viewer::G4OpenGLImmediateWin32Viewer
41(G4OpenGLImmediateSceneHandler& sceneHandler,
43G4OpenGLViewer (sceneHandler),
44G4OpenGLWin32Viewer (sceneHandler),
45G4OpenGLImmediateViewer (sceneHandler),
46G4VViewer (sceneHandler, sceneHandler.IncrementViewCount (), name) {
48 if (fViewId < 0)
return;
51void G4OpenGLImmediateWin32Viewer::Initialise () {
55 CreateGLWin32Context ();
61 glDrawBuffer (GL_FRONT);
67 glDepthFunc (GL_LEQUAL);
68 glDepthMask (GL_TRUE);
71void G4OpenGLImmediateWin32Viewer::DrawView () {
75 glDrawBuffer (GL_FRONT);
82 glViewport (0, 0, getWinWidth(), getWinHeight());
103void G4OpenGLImmediateWin32Viewer::FinishView (
114 while ( ::PeekMessage(&event, NULL, 0, 0, PM_REMOVE) ) {
115 ::TranslateMessage(&event);
116 ::DispatchMessage (&event);