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…
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.
i’m using framebuffer object on both windows and linux on a number of different graphics cards.
more info and example code here:
Thanks for the help and http-link.
I’ll use GL_EXT_framebuffer_object. problem solved.