Light Class Summary Class light stores light attributes and provides a method to enable a light. State bool on flag for whether or not light is on Default: false GLenum ID OpenGL number of the light float position[4] position of the light in homogeneous coordinates (x,y,z,w). Generally the fourth value is zero or one. If it is zero, the light it a directional light. Otherwise it is a point light. Color ambient ambient RGBA intensity of the light Color diffuse diffuse RGBA intensity of the light Color specular specular RGBA intensity of the light Methods light() Set the default 'on' to false. void enable() Enable the light and update the graphics API with its color states. See OpenGL function glLight.