- 博客(1)
- 收藏
- 关注
原创 Opengl 实现截屏功
使用FreeImage提供的库,实现函数如下demo链接:https://github.com/liujiapeng550/jp_openglbool SaveImage(const char* imgpath){ //创建一块内存 unsigned char* mpixels = new unsigned char[800 * 600 * 4]; //glReadBuffer函数指明要从哪个颜色缓存中读取数据 glReadBuffer(GL_FRONT); //
2021-05-10 21:31:10
1375
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人