PDA

View Full Version : OGL Fullscreen



santyhamer
03-27-2004, 10:28 AM
I know this would be an old topic but...
Normally, I use ChangeDisplaySettings and rescale window to "simulate" OGL full screen in Windows... is there any way to get REAL ogl fullscreen and bypass all the GDI window painting mechanism? Is that making OGL slower than should it be?

ps: In win3.11/nt4 there is a hidden function called-something-like GDIDeath that some demosceners used in the past to "disable" the gdi system...

thx all.

SirKnight
03-27-2004, 10:33 AM
My OpenGL framework supports fullscreen mode and it works just fine. The OpenGL setup code was based off of NeHe's code so check that out and see if it helps any.

-SirKnight

jwatte
03-27-2004, 05:11 PM
You don't need to paint within WM_PAINT. You can paint whenever you want (as long as the context is current). Caling wglSwapBuffers() does not involve GDI.

santyhamer
03-28-2004, 02:32 PM
btw, do you know the difference between ::SwapBuffers() and wglSwapBuffers()????