How to plot dots or pixels at (x,y) using a Framebuffer Object?

Started by
0 comments, last by KaiNiklas 9 years, 3 months ago

I researched this question on the web, but I couldn't find a specific tutorial or example. I hear this is possible.

What I want to do is this:

1) Create a FBO of screen_width * screen_height.

2) Plot a pixel on it using (x,y, color).

3) Copy or draw the FBO to the screen.

Is there a simple example of writing this?

Advertisement

hi,

you may get close to what you need with:
https://www.opengl.org/sdk/docs/man2/xhtml/glDrawPixels.xml

But i guess to have a simple shader and just draw one pixel to the FBO should be a better futuresave apporche ..

cu

uwi2k2

uwi2k2 - parttime Game-Dev
---------------------------------------------------------
OpebGL Trainer: www.opengl-trainer.com
deCode Company: www.decode.ro

This topic is closed to new replies.

Advertisement