Drawing3d documented Class Library

OpenGlDevice.OglLight Methods

The methods of the OpenGlDevice.OglLight class are listed below. For a complete list of OpenGlDevice.OglLight class members, see the OpenGlDevice.OglLight Members topic.

Public Instance Methods

Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
ToString (inherited from Object) 
UpDate Overrides the UpDate-method and refreshes all properties in current device.
UpDated (inherited from Light) If you change more than one property of a light, use UpDating at the beginning and UpDated at the end. This ensures, that the method UpDate will be called only one time.
UpDating();
Ambient = Colors.White;
Specular = Colors.Blue;
..
UpDated();

UpDating (inherited from Light) If you change more than one property of a light, use UpDating at the beginning and UpDated at the end. This ensures that the method UpDate will be called only one time.
UpDating();
Ambient = Colors.White;
Specular = Colors.Blue;
..
UpDated();

Protected Instance Methods

Finalize (inherited from Object) 
getAmbient (inherited from Light) virtual getmethod of the property Ambient
getDiffuse (inherited from Light) virtual getmethod of the property Diffuse
getDirection (inherited from Light) The virtual getMethod of the property Direction
getPosition (inherited from Light) The virtual getMethod of the property Position
getSpecular (inherited from Light) virtual getmethod of the property Specular
getSpotCutOff (inherited from Light) Virtual getmethod of the property SpotCutOff
getSpotExponent (inherited from Light) The virtual getMethod of the property SpotExponent
MemberwiseClone (inherited from Object) 
setAmbient Overrides the method and implements the OpenGl call Gl.glLightfv(Handle, Gl.GL_AMBIENT, ref value);
SetConstantAttenuation Overrides the method of the ConstantAttenuation property and implements the OpenGL method Gl.glLightfv(Handle, Gl.GL_CONSTANT_ATTENUATION, ref value);
SetDevice (inherited from Light) Protected setmethod of the property Device.
setDiffuse Overrides the method and implements the OpenGl call Gl.glLightfv(Handle, Gl.GL_DIFFUSE, ref value);
setDirection Overrides the setmethod of the property Direction and implements the OpenGL method Gl.glLightfv(Handle, Gl.GL_SPOT_DIRECTION, ref value.x);
SetEnable Enables a light by calling Gl.glEnable(Handle);
SetLinearAttenuation Overrides the method and implements the OpenGl call G Gl.glLightfv(Handle, Gl.GL_LINEAR_ATTENUATION, ref value);
setPosition Overrides the Position - setter and implements the OpenGl-method Gl.glLightfv(Handle, Gl.GL_POSITION, ref value);
SetQuadraticAttenuation Overrides the method and implements the OpenGl call Gl.glLightfv(Handle, Gl.GL_QUADRATIC_ATTENUATION, ref QuadraticAttenuation);
setSpecular Overrides the method and implements the OpenGl call Gl.glLightfv(Handle, Gl.GL_SPECULAR, ref value);
setSpotCutOff Overrides the SpotCutOff-setmethod and implements the OpenGL-method Gl.glLightfv(Handle, Gl.GL_SPOT_CUTOFF, ref value) Only when the value is greater 0 the Direction is active.
setSpotExponent Overrides the SpotExponent-Setter and calls the OpenGL-method Gl.glLightf(Handle, Gl.GL_SPOT_EXPONENT, value);

See Also

OglLight Class | Drawing3d.Devices Namespace