glClearColor(0.0,0.0,0.0,0.0)和glClear(COLOR_BUFFER_BIT)之间有区别吗? [英] Is there a difference between glClearColor(0.0,0.0,0.0,0.0) and glClear(COLOR_BUFFER_BIT)?
本文介绍了glClearColor(0.0,0.0,0.0,0.0)和glClear(COLOR_BUFFER_BIT)之间有区别吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
两个都清除颜色缓冲区,对吗?他们以同样的方式做吗?
Both clear the color buffer, right? Do they do it the same way?
推荐答案
glClear
实际上会清除缓冲区,而 glClearColor
只是将颜色设置为清除缓冲区即可
glClear
actually clears the buffer, while glClearColor
just sets the colour to clear the buffer to.
这篇关于glClearColor(0.0,0.0,0.0,0.0)和glClear(COLOR_BUFFER_BIT)之间有区别吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文