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