View Full Version : bitmap creation using opengl
11-20-2009, 01:08 AM
I want to create bitmap filled with color of size 700x700.
can anyone tell me how to go about it.
11-20-2009, 06:23 AM
I guess you want to dump the colorbuffer of the framebuffer into a location in RAM.
The most reliable solution is the create a FBO (FrameBuffer Object) with a texture for the colorbuffer and dump the texture back into RAM.
If FBO is not available on your graphics card, you are stuck with glReadPixel() on the default framebuffer which can be problematic has the default framebuffer is affected by the pixel ownership test (ie if a part of your window is covered by another one, you could have garbage in the covered part).
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.