Drawing3d documented Class Library

Light Members

Light overview

Public Instance Constructors

Light Constructor The constructor initializes the light by the following values ConstantAttenuation =10 LinearAttenuation =0 QuadraticAttenuation=0 Diffuse = White Ambient = White Specular = White Position = (0,0,10);

Public Instance Fields

UpDateCount

Public Instance Properties

Ambient Retrieves and sets the ambient part of the light
ConstantAttenuation Retrieves and sets the constant attenuation
Device Holds the device in which the light is used.
DiffuseRetrieves and sets the diffuse part of the light.
Direction Retrieves or writes the direction of the light
Enable Before you call an UpDate, you have to enable the light
LinearAttenuation Retrieves and sets the linear attenuation
Position Reads and writes the position of the light
QuadraticAttenuation Retrieves and sets the quadratic attenuation
SpecularRetrieves and sets the specualar part of the light.
SpotCutOff Retrieves and sets the angle of a spotlight. The default is PI. This means that the light is not a spot.
SpotExponent 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 This abstract method must be overriden. It moves the data to the graphicengine.
UpDated 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 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 virtual getmethod of the property Ambient
getDiffuse virtual getmethod of the property Diffuse
getDirection The virtual getMethod of the property Direction
getPosition The virtual getMethod of the property Position
getSpecular virtual getmethod of the property Specular
getSpotCutOff Virtual getmethod of the property SpotCutOff
getSpotExponent The virtual getMethod of the property SpotExponent
MemberwiseClone (inherited from Object) 
setAmbient virtual setmethod of the property Ambient
SetConstantAttenuation Set method of the property ConstantAttenuation
SetDevice Protected setmethod of the property Device.
setDiffuse virtual setmethod of the property Diffuse
setDirection The virtual setMethod of the property Direction
SetEnable Virtual SetMethod of the property Enable
SetLinearAttenuation Setmethod of the LinearAttenuation-property
setPosition The virtual setMethod of the property Position
SetQuadraticAttenuation Setmethod of the QuadraticAttenuation-Property
setSpecular virtual setmethod of the property Specular
setSpotCutOff Virtual setmethod of the property SpotCutOff
setSpotExponent The virtual setMethod of the property SpotExponent

See Also

Light Class | Drawing3d Namespace