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.
精彩评论