From Ohm

OpenGL State

The OpenGL rendering state and thus the state of the graphics hardware is defined by commands starting with “gl” as defined by the OpenGL headers:

#ifndef __APPLE__
#include <GL/gl.h>
#include <GL/glu.h>
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>

For example to change the actual rendering color to red:


Same holds for texturing (glTexCoord2f), normals (glNormal3f) and other graphic attributes related to shading, fogging etc.

Read more about it in the OpenGL Red Book [1] and the OpenGL tutorial.



Retrieved from

Page last modified on October 26, 2013, at 09:05 PM