how to save the opengl scene to a bitmap?
I am new to opengl, i want save my current opengl scene to a bitmap. I checked the "red book", and i know i should use "glReadPixels" to read pixels from "pixel buffer",but
i don't know how to swap "frame buffer" to "pixel buffer". Could you give me some code?