|
RwPrimitiveType This type represents the different types of
indexed line and indexed triangle primitives that are available
when rendering 2D and 3D immediate mode objects (see API functions
RwIm2DRenderIndexedPrimitive, RwIm2DRenderPrimitive,
RwIm3DRenderIndexedPrimitive and
RwIm3DRenderPrimitive). Indices are
into a vertex list and must be defined in a counter-clockwise order
(as seen from the camera) to be visible.
- Enumeration values:
-
rwPRIMTYPENAPRIMTYPE |
Invalid primative type |
rwPRIMTYPELINELIST |
Unconnected line segments, each line is specified by both its
start and end index, independently of other lines (for example, 3
segments specified as 0-1, 2-3, 4-5) |
rwPRIMTYPEPOLYLINE |
Connected line segments, each line's start index (except the
first) is specified by the index of the end of the previous segment
(for example, 3 segments specified as 0-1, 1-2, 2-3) |
rwPRIMTYPETRILIST |
Unconnected triangles: each triangle is specified by three
indices, independently of other triangles (for example, 3 triangles
specified as 0-1-2, 3-4-5, 6-7-8) |
rwPRIMTYPETRISTRIP |
Connected triangles sharing an edge with, at most, one other
forming a series (for example, 3 triangles specified as 0-2-1,
1-2-3-, 2-4-3) |
rwPRIMTYPETRIFAN |
Connected triangles sharing an edge with, at most, two others
forming a fan (for example, 3 triangles specified as 0-2-1, 0-3-2,
0-4-3) |
rwPRIMTYPEPOINTLIST |
Points 1, 2, 3, etc. This is not supported by the default
RenderWare immediate or retained-mode pipelines (except on
PlayStation 2), it is intended for use by user-created
pipelines |
|