
opengl.org上glutswapbuffers的描述是
Performs a buffer swap on the layer in use for the current window. Specifically,glutSwapBuffers promotes the contents of the back buffer of the layer in use of the current window to become the contents of the front buffer. The contents of the back buffer then become undefined.
最后一句话的含义是什么?后缓冲区现在指向null?
@R_404_6120@ 这意味着,过剩缓冲区变为前置后,过剩的那个缓冲区将保留一些有意义的缓冲区,就像你认为它包含那些以前在“旧”前缓冲区中的信息一样.我想,它是这样做的,因为否则你需要第三个缓冲区以这种方式交换缓冲区,这在高性能3D中是不可接受的 总结以上是内存溢出为你收集整理的c – glutswapbuffers实际上做了什么?全部内容,希望文章能够帮你解决c – glutswapbuffers实际上做了什么?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)