Fixed cube-mapping bug which caused severe z-fighting.
Removed unnecessary comparison operators. Added glDepthRange() to the draw code to ensure skyboxes get drawn behind other geometry.
Added cubes to the set of primitives. Privatized primitive initialization and termination functions.
Refactored bitmap loading code by reducing similar processes into one function.