Click or drag to resize
MaterialAPI Class
The base class for a material. Note: for some material types one or more of the properties below may be ignored. For example, we might have a material that doesn't support lighting at all, and will ignore lighting-related properties.
Inheritance Hierarchy

Namespace:  GeonBit.Core.Graphics.Materials
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public abstract class MaterialAPI

The MaterialAPI type exposes the following members.

Properties
  NameDescription
Public propertyAlpha
Opacity levels (multiplied with color opacity).
Public propertyAmbientLight
Ambient light color.
Public propertyDiffuseColor
Diffuse color.
Public propertyEffect
Get the effect instance.
Public propertyEmissiveLight
Emissive light color.
Public propertyLightingEnabled
Return if this material support dynamic lighting.
Public propertyProjection
Current projection matrix.
Public propertySpecularColor
Specular color.
Public propertySpecularPower
Specular power.
Public propertyTexture
Texture to draw.
Public propertyTextureEnabled
Is texture currently enabled.
Public propertyView
Current view matrix.
Public propertyViewProjection
Current view-projection matrix.
Public propertyWorld
Current world transformations.
Top
Methods
  NameDescription
Public methodApply
Apply all new properties on the material effect. Call this whenever you want to draw using this material.
Public methodClone
Clone this material.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIterateEffectPasses
Iterate over all passes in current technique and call the provided callback for each pass. You can use this function to draw stuff manually.
Public methodSetBoneTransforms
Set bone transforms for an animated material. Useable only for materials that implement skinned animation in shader.
Public methodSetDefaults
Set default value for all the basic properties.
Public methodStatic memberSetViewProjection
Set materials view and projection matrixes (shared by all materials).
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberDefaultSamplerState
Default sampler state.
Public fieldStatic memberEffectsPath
Path of GeonBit built-in effects.
Public fieldSamplerState
Sampler state.
Top
See Also