Click or drag to resize
AB4D logo

Material Class

Material is a base abstract class from which all DXEngine's material must be derived from.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResource
      Ab3d.DirectXSharedDXDeviceResource
        Ab3d.DirectXMaterial
          More

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public abstract class Material : SharedDXDeviceResource

The Material type exposes the following members.

Properties
 NameDescription
Public propertyEffect Gets or sets the Effect that is used to render this material.
Public propertyPreferedShaderQuality Gets or sets a shader quality that should be used to render this material. When this property is set to any other value than Undefined (by default) it overrides the ShaderQuality setting set in GraphicsProfile.
Public propertyVersion Gets the version number of this Material. Version is increased each time the material is changed. Note: When material is changed a lot of times, the Version value can overflow from positive to negative numbers (to prevent problems do not check for bigger value but for not equal value)
Top
Methods
 NameDescription
Public methodClone Clones the current material with creating a shallow copy of this Material (properties are copied but referenced objects are preserved).
Public methodGetDefaultRenderingQueue Returns the RenderingQueue that should be used to render this material. The default method implementation returns TransparentRenderingQueue or OtherGeometryRenderingQueue based on the HasTransparency value.
Public methodRefresh Refresh method regenerates the material and the resources it created.
Public methodToString ToString
(Overrides ObjectToString)
Top
Events
 NameDescription
Public eventMaterialChanged MaterialChanged
Top
See Also
Inheritance Hierarchy