Game Development Reference
In-Depth Information
In order to set the clearing color, we call the glClearColor () function as follows:
glClearColor(0.6, 0.65, 0.85, 0);
The given values should result in a light-blue color that is 60 percent red, 65 percent
green, and 85 percent blue. The fourth parameter is the alpha (transparency) value,
and is typically set to 0 in this situation. The following screenshot shows our applic-
ation window, and now that glClear () is being called every iteration:
Search WWH ::




Custom Search