PDA

View Full Version : Blitting and direct video manipulation



mcbastian
11-28-2000, 11:05 PM
Hi There!

Is there a possibility to do some "putpixel(x,y,color)" after opengl has rendered the scene?
that means, accessing the surface direct (like libSDL.org or gaffer.org OpenPTC does)...?
perhaps for some 2d effects in a "over" a 3d-scene? (like blitting some text or pics)

greets'n thanx 4 help

Bastian

Bob
11-29-2000, 01:06 AM
Use glDrawPixels(). This function can draw directly to the frame buffer.

mcbastian
11-29-2000, 04:57 AM
Is this fast? cause I have many pixels to draw. or is it faster to manipulate a texture, load it and put it on a square?


thanx, bastian.

Glossifah
11-29-2000, 05:22 AM
This may or may not help, but here is how they do it with DirectX 7 on the Radeon adapter: http://www.ati.com/na/pages/resource_cen...ectedVideo.html (http://www.ati.com/na/pages/resource_centre/dev_rel/sdk/radeonsdk/Html/Samples/Direct3D/RadeonProjectedVideo.html)

Enjoy!

Glossifah