Facing problem regarding saving the bitmap.

Hi Folks,

I am trying to save a part of the screen in .BMP file.

can anybody suggest me which OpenGL functions should I use to solve this problem ??

thanks
Amol Joshi

OpenGL doesn’t have any functions for saving BMP files, you’ll have to write those yourself, or use some other library that can do that for you.

You will, however, need to use the OpenGL function glReadPixels in order to get the data to save to a BMP.