LWJGL Forum

Programming => LWJGL Documentation => Topic started by: pobrien on April 11, 2010, 03:38:14

Title: opengl 3 framebuffer demo
Post by: pobrien on April 11, 2010, 03:38:14
Are there any plans for tutorials on using framebuffers with opengl 3? Does anyone have an example? Thanks
Title: Re: opengl 3 framebuffer demo
Post by: spasi on April 11, 2010, 14:06:45
Hey pobrien,

You can use http://lwjgl.org/wiki/doku.php/lwjgl/tutorials/opengl/basicfbo (http://lwjgl.org/wiki/doku.php/lwjgl/tutorials/opengl/basicfbo) as a base. The conversion from EXT_fbo is very simple, just replace EXTFramebufferObject. with GL30. and use the corresponding methods and tokens from GL30 (that basically means removing the EXT postfixes). Any FBO tutorial/example that you may find on the internet should be good enough to get you started too, converting C code should be straightforward, especially with static imports.