Reputation: 22270
Both clear the color buffer, right? Do they do it the same way?
Upvotes: 10
Views: 5252
Reputation: 134
glClear is a Command: which clears the buffer.
glClearColor is State Setting: which sets the color value to buffer.
Upvotes: 3
Reputation: 5914
glClear
actually clears the buffer, while glClearColor
just sets the colour to clear the buffer to.
Upvotes: 25