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
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResource
      Ab3d.DirectXSharedDXDeviceResource
        Ab3d.DirectXMaterial
          Ab3d.DirectX.MaterialsLineMaterial
            Ab3d.DirectX.MaterialsPositionColoredLineMaterial

Namespace: Ab3d.DirectX.Materials
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
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 LineMaterialGetDefaultRenderingQueue(DXScene))
Public methodToString ToString
(Overrides LineMaterialToString)
Public methodUpdate Update method updates the DirectX vertex buffer from the current values of PositionColors.
Top
See Also