简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM