Drawing3d documented Class Library

OglMaterial11111111 Members

OglMaterial11111111 overview

Public Instance Constructors

OglMaterial11111111 Constructor Initializes a new instance of the OglMaterial11111111 class.

Public Instance Fields

Name (inherited from Material) For every material a name is given, which describes it. It can be void.
Tag (inherited from Material)
UpdateCount (inherited from Material) Th Updating - metod increment this field and th Updated decrement this field. If the field is 0 Update is called.

Public Instance Properties

Ambient (inherited from Material) Retrieves and sets the ambient part.
Diffuse (inherited from Material) Retrieves and sets the diffuse part.
Emission (inherited from Material) Retrieves and sets the emission part.
Shininess (inherited from Material) Retrieves and sets the Shininessvalue.
Specular (inherited from Material) Retrieves and sets the specular part.
Translucent (inherited from Material) Retrieves and sets the translucentvalue. It has to be between 0 ( translucent ) and 1 ( solid)

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.Ambient    = Color.Red;
m.Specular    = Color.Blue;
// now the virtual method Update will be called.

Public Instance Events

Changed (inherited from Material) This event is fired every time a property of a material has changed.

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