PDA

View Full Version : pointer to buffer



hiasl
11-29-2001, 10:11 PM
hi,

is there any possibility to get a pointer to the color buffer (respectively to any buffer) for direct writing and reading?
this would avoid to call for every pixel the write function...

ciao,

hiasl

Bob
11-29-2001, 10:25 PM
No, there isn't. And just because you get a pointer to the framebuffer, doesn't mean you can do it faster and/or better. And you don't have to make a function call for each pixel. glDrawPixels can draw as many pixels as you like.

Have a look here (http://www.opengl.org/discussion_boards/ubb/Forum7/HTML/000077.html)

pATChes11
11-30-2001, 11:20 AM
However, not very quickly. As far as I know, it would be faster to precreate a texture and upload the pixels you want to draw to that, and use multiple textures of various sizes to encompass larger areas of pixels. It would be a good idea to switch to an orthogonal matrix mode first, however http://www.opengl.org/discussion_boards/ubb/smile.gif