Link to home
Start Free TrialLog in
Avatar of bloodbird
bloodbird

asked on

how to save the opengl scene to a bitmap?

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?
thank you.
Avatar of Ferruccio Accalai
Ferruccio Accalai
Flag of Italy image

Take a look a this thread, just like a point of start http://www.mofeel.net/312-comp-graphics-api-opengl/3919.aspx
SOLUTION
Avatar of ikework
ikework
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial