Click or drag to resize
AB4D logo

PositionColoredLineMaterial Class

PositionColoredLineMaterial is a LineMaterial that contains additional properties that can be used to render 3D lines with different start and end colors.
Inheritance Hierarchy
System.Object
  Ab3d.DirectX.DXResourceBase
    Ab3d.DirectX.SharedDXResource
      Ab3d.DirectX.SharedDXDeviceResource
        Ab3d.DirectX.Material
          Ab3d.DirectX.Materials.LineMaterial
            Ab3d.DirectX.Materials.PositionColoredLineMaterial

Namespace: Ab3d.DirectX.Materials
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public class PositionColoredLineMaterial : LineMaterial, 
	IVertexColorMaterial, ITransparentMaterial

The PositionColoredLineMaterial type exposes the following members.

Constructors
 NameDescription
Public methodPositionColoredLineMaterial Constructor
Top
Properties
 NameDescription
Public propertyCreateDynamicBuffer Gets or sets a Boolean that specifies if a dynamic vertex buffer will be created from the PositionColors array. This can be used in case when the colors change very often.
Public propertyHasTransparency Gets a boolean that specifies if this material is semi-transparent and needs to be alpha blended with the scene.
Public propertyPositionColors Gets or sets the Color4 array that specifies the colors for each position of the object.
Public propertyVertexColorsVertexBufferBinding Gets a VertexBufferBinding for an array of Color4 values where each value represents a color of one position.
Top
Methods
 NameDescription
Public methodGetDefaultRenderingQueue Returns the RenderingQueue that should be used to render this material.
(Overrides LineMaterial.GetDefaultRenderingQueue(DXScene))
Public methodToString ToString
(Overrides LineMaterial.ToString())
Public methodUpdate Update method updates the DirectX vertex buffer from the current values of PositionColors.
Top
See Also