PDA

View Full Version : Render-to-texture in cross-platform applications.



ErV
05-26-2007, 04:10 PM
Hello.
What is the best way to do "render-to-texture" in cross-platform applications (OpenGL 2.0)? So far I've found only NVidia's PBuffer class (in NVSDK) and "GL_EXT_framebuffer_object", both of them seems to be "imperfect". PBuffer is a wrapper around a platform-dependant functions and GL_EXT_framebuffer_object is not a standart part of API.
So, what should I use? I'll need rendering to textures in a small computer game, which is supposed to be cross-platform...

Overmind
05-27-2007, 03:20 AM
Of course GL_EXT_framebuffer_object is standard. Just because it's an extension doesn't mean it's not standard. It should be available on pretty much any hardware that's in use today.

Dylan
05-27-2007, 04:19 AM
i'm using framebuffer object on both windows and linux on a number of different graphics cards.

more info and example code here:

http://www.gpgpu.org/developer/

ErV
05-27-2007, 07:16 AM
2Overmind, Dylan
Thanks for the help and http-link.
I'll use GL_EXT_framebuffer_object. problem solved.