Click or drag to resize
AB4D logo

SubMesh Class

SubMesh is part of the MeshBase that uses the same vertex and index buffers as the MeshBase but use its own Material, StartIndexLocation and IndexCount.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXSubMesh

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

The SubMesh type exposes the following members.

Constructors
 NameDescription
Public methodSubMesh Constructor
Top
Properties
 NameDescription
Public propertyIndexBuffer If IndexBuffer is set than this index buffer is used to render this SubMesh. If not set, than parent's Mesh IndexBuffer is used.
Public propertyIndexCount number of indices to render
Public propertyMaterialIndex Gets or sets an index of the material defined in the parent's Mesh Materials collection.
Public propertyName Name
Public propertyStartIndexLocation start index in IndexBuffer used in DrawIndexed method
Top
Fields
 NameDescription
Public fieldBounds Bounds of this SubMesh. When null, then Bounds of parent Mesh are used.
Top
See Also