Drawing3d documented Class Library

OpenGlDevice.OglLight Members

OpenGlDevice.OglLight overview

Public Instance Constructors

OpenGlDevice.OglLight Constructor Constructor without parameters.

Public Instance Fields

UpDateCount (inherited from Light)

Public Instance Properties

Ambient (inherited from Light) Retrieves and sets the ambient part of the light
ConstantAttenuation (inherited from Light) Retrieves and sets the constant attenuation
Device (inherited from Light) Holds the device in which the light is used.
Diffuse (inherited from Light)Retrieves and sets the diffuse part of the light.
Direction (inherited from Light) Retrieves or writes the direction of the light
Enable (inherited from Light) Before you call an UpDate, you have to enable the light
LinearAttenuation (inherited from Light) Retrieves and sets the linear attenuation
Position (inherited from Light) Reads and writes the position of the light
QuadraticAttenuation (inherited from Light) Retrieves and sets the quadratic attenuation
Specular (inherited from Light)Retrieves and sets the specualar part of the light.
SpotCutOff (inherited from Light) Retrieves and sets the angle of a spotlight. The default is PI. This means that the light is not a spot.
SpotExponent (inherited from Light) Retrieves and sets the exponent for a spotlight

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