PDA

View Full Version : Window DCs as OpenGL texture



Schelm
05-06-2006, 05:09 AM
Hi all,

i would like to have a (windowless) OpenGL app that is using the current windows DC (desktop dc) as texture.

How could this be done efficiently (How could the readback of the dc to the main mem and glTexImage () be avoided ?).

Is there a way ?

Thanx

Schelm

def
05-06-2006, 10:06 AM
I believe there is no reliable way to avoid it.
An unreliable hack works with some setups in using glReadPixels() with a fullscreen OpenGL Window before doing an initial glClear() call.