[SDL] Re: Efficient screen capture -> GL Texture
Xilo Musimene
xilo_m at hotpop.com
Sat Mar 22 11:47:24 PST 2003
> Apparently, you're using OpenGL already. If you use the GL, go GL completely
> and don't use SDL for anything but initial setup.
> You can use glReadPixels() to read from the framebuffer, and you can use the
> CopyTexImage() family of functions to copy (parts of) the framebuffer into
> a texture.
> Note that there are also GL extensions to render to textures directly.
Yes I already use GL.
And as for glReadPixels(), I think it is used to download the data from
the buffer to be able to use it in the computer's RAM (instead of the
video memory)
And I was unable to find anything other than glCopyPixels() which only
copies the pixels into the framebuffer and not a texture.
Thanks for you help,
Simon
More information about the SDL
mailing list