Clearing the bitplanes:
glClearColor(0.0, 0.0, 0.0, 0.0);
glClearDepth(1.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
-
Other bitplanes ara available to address with glClear()
Table 2-1
Question: Why is the clear
command glClearColor() instead of glClearColor4f()?
glClear() is generally an optimized routine - use it!
(avoid the "roll your own" mentality
|