Click or drag to resize
AB4D logo

ScreenSpaceLineMesh Class

ScreenSpaceLineMesh class prepares the low level DirectX objects (Index and Vertex buffers) for rendering screen-space 3D lines.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResource
      Ab3d.DirectXSharedDXDeviceResource
        Ab3d.DirectXMeshBase
          Ab3d.DirectXScreenSpaceLineMesh

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 6.1.8746.1045
Syntax
C#
public class ScreenSpaceLineMesh : MeshBase, 
	IDynamicVertexBufferCreator

The ScreenSpaceLineMesh type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyCreateDynamicVertexBuffer Gets or sets a Boolean that specifies if the vertex buffer is created as a dynamic buffer. This can provide slightly better performance for cases when vertex buffer is updated very often. Default value is false.
Public propertyIsLineStrip If true than the Positions define connected lines, if false than lines are not connected and each line is defined by two positions.
Public propertyLineIndices When set to an array of line indices, then an index buffer is created from the array. This can be used to render multiple poly-lines with one draw call. This array must be set before this mesh is initialized.
Public propertyPositions Positions array that form 3D lines.
Top
Methods
 NameDescription
Public methodRecreateMesh Creates the VertexBuffers and IndexBuffer from the specified Positions and LineIndices.
Public methodRecreateMesh(Boolean, Boolean) Creates the VertexBuffers and IndexBuffer from the specified Positions and LineIndices.
Top
See Also