开发者

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

开发者 https://www.devze.com 2023-01-27 01:55 出处:网络
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:

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

精彩评论

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