March 2013
Intermediate to advanced
984 pages
26h 18m
English
With all that setup and data initialization, rendering (for the moment) will be very simple. While our display() routine is only four lines long, its sequence of operations is virtually the same in all OpenGL applications. Here it is once again.
void display(void){ glClear(GL_COLOR_BUFFER_BIT); glBindVertexArray(VAOs[Triangles]); glDrawArrays(GL_TRIANGLES, 0, NumVertices); glFlush();}
First, we begin rendering by clearing our framebuffer. This is done by calling glClear().
Table 1.3. Clearing ...
Read now
Unlock full access