I can''t find a cross-platform way of doing this.
The official zorx website
Which ones faster - display lists or saving picture
Why not just use glReadPixels?
Failing that you can just use SDL and convert your SDL_surface to a GL texture.
My Website | Everything you need to know about 3D Graphics | Google | Search the Forums
[edited by - Luke Philpot on October 29, 2003 1:11:04 AM]
Failing that you can just use SDL and convert your SDL_surface to a GL texture.
My Website | Everything you need to know about 3D Graphics | Google | Search the Forums
[edited by - Luke Philpot on October 29, 2003 1:11:04 AM]
You guys are making this way to complicated.
do this at initialization:
1. render just the background normally
2. use glCopyTexImage to put the data into a texture
3. clear the color buffer (and zbuffer, if you are using that for some reason)
4. when you want to render the background, render a quad with that texture streched across the whole screen.
There, that is completely portable, and should work.
------------------------------
BASIC programmers don''t die, they just GOSUB and don''t return.
do this at initialization:
1. render just the background normally
2. use glCopyTexImage to put the data into a texture
3. clear the color buffer (and zbuffer, if you are using that for some reason)
4. when you want to render the background, render a quad with that texture streched across the whole screen.
There, that is completely portable, and should work.
------------------------------
BASIC programmers don''t die, they just GOSUB and don''t return.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement