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?
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
链接地址: http://www.djcxy.com/p/7984.html上一篇: 如何在内容脚本和插件之间共享代码?
下一篇: 需要OpenGL / PBO像素绘图示例