1、又一种Qt + OpenGL 的离屏渲染方法 - liji_digital的博客 - CSDN博客.html(https://blog.csdn.net/liji_digital/article/details/78858844)
ZC:framebuffer的使用,但是 貌似 是使用的 OpenGL3之前版本的函数,∵ 里面连 GLSL着色器文件都么有用到
2、glBindFramebuffer() 离屏渲染+双缓存+读取opengl像素 glReadPixels() - u011450490的博客 - CSDN博客.html(https://blog.csdn.net/u011450490/article/details/51336302)
ZC:glReadBuffer(GL_FRONT);//指定要读取的缓存
ZC:glReadPixels(0, 0, width, height, GL_BGRA_EXT, GL_UNSIGNED_BYTE, (unsigned char*)imageData);
ZC:glGetError();
ZC:读取 帧缓存对象(FBO [ Frame Buffer Object ])存入到BMP位图中
3、
4、
5、
扫描二维码关注公众号,回复:
6252877 查看本文章