Drawing3d documented Class Library

Material Methods

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

Public Static (Shared) Methods


Public Instance Methods

assign Sets the meterial properties to an other material
Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
ToString Overrides the ToString method. If a matrial has a name, then this name will be returned.
Update This method should be overridden for a real graphic engine. Further a call for the event Changed is done.
Updated Should be called at the end of a change of material properties in combination with Updating
Updating If you want to change properties of the material, please use Updating first and Updated at last. This guarantees that a Update-call is fired only once.
// Sample
Material m = new Material();
m.Ambient    = Color.Red;
m.Specular    = Color.Blue;
// now the virtual method Update will be called.

Protected Instance Methods

Finalize (inherited from Object) 
getAmbient Getmethod of the property Ambient
getDiffuse Virtual getmethod of Diffuse-property
getEmission Virtual getmethod of Emission-property
getShininess Virtual getmethod of Shininess-property
getSpecular Virtual getmethod of Specular-property
getTranslucent Virtual getmethod of Translucent-property
MemberwiseClone (inherited from Object) 
setAmbient Virtual setmethod of the property Ambient.
setDiffuse Virtual setmethod of Diffuse-property
setEmission Virtual setmethod of Emission-property
setShininess Virtual setmethod of Shininess-property
setSpecular Virtual setmethod of Specular-property
setTranslucent Virtual setmethod of Translucent-property

See Also

Material Class | Drawing3d.Materials Namespace