/***presentedbylxxgreat**说明:**GLubyte*bits;//定义指向位图数据的指针**bits=(unsignedchar*)malloc(Width*Height*3);//为位图分配内存空间并赋值给bits**glReadPixels(0,0,Width,Height,GL_BGR_EXT,GL_UNSIGNED_BYTE,bits);//从帧缓存中读取位图数据**Snapshot((BYTE*)bits,Width,Height,"test.bmp");//生成24位BMP图片*/