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