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

05-26-2007, 05:10 PM
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...

05-27-2007, 04: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.

05-27-2007, 05: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:


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