ashwin_9891's picture

FBO

Hiiiii ppl.. I am a noob to OpenGL as such.. I am on a project that uses FBOs to draw something on them and display them finally on to the screen..
so i have two problems..
1) Drawing a Triangle in the FBO say along with vertex shaders also.
2) Displaying the whole FBO into the screen.
Can anyone please help me with code snippets that will enable me in performing this ?? thanks in advance..


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

This OpenTK example shows how to render to a FBO and display the FBO to screen. It's not using shaders, but adding shaders is easy, once you get FBOs working.

You should also check out Examples.exe that comes with OpenTK. Starting with OpenTK 0.9.8, every example comes with source code that you can use as a reference or even copy & paste into your project.