PDA

View Full Version : Troubles with Full Screen rendering



QBRADQ
12-13-2003, 06:34 AM
Ok, here's the deal. I am trying to get OpenGL to render in fullscreen mode, and I must be missing something. I have made several programs in the past and had no troubles, but this one is a bit different.

First, there are two windows. One is a Windows API window for my console. Second is the rendering window.

The rendering window is created last. Here is the program flow durring the rendering window's setup.

ChangeDisplaySettings() (CDS_FULLSCREEN flag ON)
CreateWindowEx() (WS_POPUP flag ON)
GetDC() (Pass NULL)
ChoosePixelFormat()
SetPixelFormat()
wglCreateContext()
wglMakeCurrent()
ShowWindow()
SetForegroundWindow()
SetFocus()

The problem I am having is that when the rendering window is active, the task bar pops up over it from time to time. Also, I use a run-line accelerator program that stays on top of window that is always on top of the rendering window. Basicaly, I am not getting fullscreen access to the rendering context, which from my understanding will slow things down.

Any thoughts?
QBRADQ