Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenGL/PBO pixel drawing example needed

I need to draw pixels very fast on a screen.

I found this interesting page Fast pixel drawing library

author posted: "Using an OpenGL texture along with a PBO seems to be the best choice. Thanks."

I guess OpenGL/PBO is what i need.

I was reading about PBO here http://www.opengl.org/registry/specs/ARB/pixel_buffer_object.txt and here http://www.songho.ca/opengl/gl_pbo.html but i don't get it...

Can someone provide simple example, how to draw pixels on a bitmap on a 2D texture with PBO extension?

like image 528
Stan Avatar asked Jun 21 '11 16:06

Stan


1 Answers

This is probably a good place to start OpenGL Pixel Buffer Object (PBO)

If you need to draw an image then the easiest way is textures, basically a 2D block of memory that you write pixel RGB (or whatever) values into an then ask openGL to draw to the screen. VBOs and PBOs just improve on the process of getting the texture to the screen.

To draw individual 3D points then you need to learn more about OpenGL start here

like image 157
Martin Beckett Avatar answered Nov 15 '22 19:11

Martin Beckett