开发者

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 开发者_如何学PythonOpenGL 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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜