PDA

View Full Version : how can change the bmp in memory to framebuffer?



kim1980
08-15-2001, 02:35 AM
how can change the bmp in memory to framebuffer?
i have read bmp into memory, but i don't know how can change it to a framebuffer, also does glreadpixels() read a block of pixels from the frame buffer ?

mikael_aronsson
08-15-2001, 03:21 AM
Hi !

I am not sure what you want to do, do you want to copy the bmp in memory to the framebuffer ?

In that case you use glDrawPixels, just make sure that you use the correct format.

And yes glReadPixels will copy pixels from the framebuffer to a meory area that you specify.

Mikael