32 #ifdef G4VIS_BUILD_OPENGLWIN32_DRIVER
39 G4OpenGLImmediateWin32Viewer::G4OpenGLImmediateWin32Viewer
40 (G4OpenGLImmediateSceneHandler& sceneHandler,
42 G4OpenGLViewer (sceneHandler),
43 G4OpenGLWin32Viewer (sceneHandler),
44 G4OpenGLImmediateViewer (sceneHandler),
45 G4VViewer (sceneHandler, sceneHandler.IncrementViewCount (), name) {
47 if (fViewId < 0)
return;
50 void G4OpenGLImmediateWin32Viewer::Initialise () {
54 CreateGLWin32Context ();
60 glDrawBuffer (GL_FRONT);
66 glDepthFunc (GL_LEQUAL);
67 glDepthMask (GL_TRUE);
70 void G4OpenGLImmediateWin32Viewer::DrawView () {
74 glDrawBuffer (GL_FRONT);
78 glViewport (0, 0, getWinWidth(), getWinHeight());
99 void G4OpenGLImmediateWin32Viewer::FinishView (
110 while ( ::PeekMessage(&event, NULL, 0, 0, PM_REMOVE) ) {
111 ::TranslateMessage(&event);
112 ::DispatchMessage (&event);