Drawing3d documented Class Library

OglMaterial11111111 Methods

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

Public Instance Methods

assign (inherited from Material) Sets the meterial properties to an other material
Copy (inherited from Material)
Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
SaveMaterial (inherited from Material)
ToString (inherited from Material) Overrides the ToString method. If a matrial has a name, then this name will be returned.
Update (inherited from Material) This method should be overridden for a real graphic engine. Further a call for the event Changed is done.
Updated (inherited from Material) Should be called at the end of a change of material properties in combination with Updating
Updating (inherited from Material) 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.Updating();
m.Ambient    = Color.Red;
m.Specular    = Color.Blue;
.
.
m.Updated();
// now the virtual method Update will be called.

Protected Instance Methods

Finalize (inherited from Object) 
getAmbient (inherited from Material) Getmethod of the property Ambient
getDiffuse (inherited from Material) Virtual getmethod of Diffuse-property
getEmission (inherited from Material) Virtual getmethod of Emission-property
getShininess (inherited from Material) Virtual getmethod of Shininess-property
getSpecular (inherited from Material) Virtual getmethod of Specular-property
getTranslucent (inherited from Material) Virtual getmethod of Translucent-property
MemberwiseClone (inherited from Object) 
setAmbient Overrides setAmbient and sets the ambient value of the material
setDiffuse Overrides setDiffuse and sets the diffuse value of the material
setEmission Overrides setEmission and sets the emission value of the material
setShininess Overrides setShininess and sets the Shininess value of the material
setSpecular Overrides setSpecular and sets the Specular value of the material
setTranslucent Overrides this method and sets Gl.glBlendFunc(Gl.GL_SRC_ALPHA, Gl.GL_ONE_MINUS_SRC_ALPHA) if value smaller than 1.

See Also

OglMaterial11111111 Class | Drawing3d.Materials Namespace