PrimitiveType Enumeration
Defines the primitives supported by Direct3D.
Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)
Syntax
'Declaration
Public Enumeration PrimitiveType
'Usage
Dim instance As PrimitiveType
public enum PrimitiveType
public enum class PrimitiveType
public enum PrimitiveType
public enum PrimitiveType
Members
Member name | Description | |
---|---|---|
LineList | Renders the vertices as a list of isolated straight line segments. Calls that use this primitive type fail if the count is less than two or is odd. | |
LineStrip | Renders the vertices as a single polyline. Calls that use this primitive type fail if the count is less than two. | |
PointList | Renders the vertices as a collection of isolated points. This value is unsupported for indexed primitives. | |
TriangleFan | Renders the vertices as a triangle fan. | |
TriangleList | Renders the specified vertices as a sequence of isolated triangles. Each group of three vertices defines a separate triangle. Back face culling is affected by the current winding-order render state. | |
TriangleStrip | Renders the vertices as a triangle strip. The back face culling flag is flipped automatically on even-numbered triangles. |
Remarks
A triangle strip renders the vertices as a series of connected triangles. Culling is removing a face from the list of faces to render. Faces can be culled using a number of techniques including: back face, view frustum, and occlusion culling.
Using triangle strips or triangle fans is often more efficient than using triangle lists because fewer vertices are duplicated.
Platforms
Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Compact Framework
Supported in: 2.0
See Also
Reference
Microsoft.WindowsMobile.DirectX.Direct3D Namespace