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.
加载中,请稍侯......
精彩评论