开发者

Is there a difference between glClearColor(0.0,0.0,0.0,0.0) and glClear(COLOR_BUFFER_BIT)?

Both clear the color开发者_JAVA百科 buffer, right? Do they do it the same way?


glClear actually clears the buffer, while glClearColor just sets the colour to clear the buffer to.


glClear is a Command: which clears the buffer.

glClearColor is State Setting: which sets the color value to buffer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜