For a week now I’ve been pounding my head against my keyboard because of my lack in knowledge over OpenGl.
My main issue is about conceiving a easy-to-use library-less export function of a rendered OpenGl scene into a bitmap.
So far I’ve made a toy model which create an quick rendition of a scene and tries to export it to a BMP file. I think that I’ve managed to understand how bitmap headers work and my image software (imageMagick) seems happy with it.
My main issue is about the content of the generated image. It’s f***ing empty!!! No matter what parameters I give to glReadPixels().
Could you tell me where I’ll find a canonical way to proceeed?
Even the Redbook gave nothing clear
It’s sad to see how hard it could be to take a screenshot…