husakm
01-12-2001, 02:00 AM
I need to do a very fast transfer of a
Direct Draw surface to the OpenGL buffer.
The reason - I use Direct Show for video
decompression witch us a DirectDraw
surface (off screen) as the result.
I need to transfer the content of this
buffer to OpenGl at video framerate.
Is it possible to get e.g. the pointer to
the RGB values in the DirectDraw surface
and to transfer them by glCopyPixels or
so to OpenGL ? Sample code will be highy apreciated ...
Direct Draw surface to the OpenGL buffer.
The reason - I use Direct Show for video
decompression witch us a DirectDraw
surface (off screen) as the result.
I need to transfer the content of this
buffer to OpenGl at video framerate.
Is it possible to get e.g. the pointer to
the RGB values in the DirectDraw surface
and to transfer them by glCopyPixels or
so to OpenGL ? Sample code will be highy apreciated ...