UIPrimitive Class Reference

Primitive. More...

Inheritance diagram for UIPrimitive:
UIElement

List of all members.

Public Member Functions

 UIPrimitive (DrawMode drawMode, int maxVertexCount)
 Constructor.
 UIPrimitive (DrawMode drawMode, int maxVertexCount, int maxIndexCount)
 Constructor.
void SetIndices (ushort[] indices)
 Sets the index array.
UIPrimitiveVertex GetVertex (int index)
 Obtains the vertex.

Protected Member Functions

override void DisposeSelf ()
 Frees the unmanaged resources being used with this UIPrimitive.
internal override void Render ()
 Renders the primitive.

Properties

DrawMode DrawMode [get, set]
 Obtains and sets the rendering mode.
int VertexCount [get, set]
 Obtains and sets the number of vertices.
int MaxVertexCount [get, set]
 Obtains the maximum value of the number of vertices.
int MaxIndexCount [get]
 Obtains the maximum value of the number of indices.
int IndexCount [get, set]
 Obtains and sets the number of indices.

Detailed Description

Primitive.


Constructor & Destructor Documentation

UIPrimitive ( DrawMode  drawMode,
int  maxVertexCount 
)

Constructor.

Parameters:
drawModeRendering mode
maxVertexCountNumber of vertices
UIPrimitive ( DrawMode  drawMode,
int  maxVertexCount,
int  maxIndexCount 
)

Constructor.

Parameters:
drawModeRendering mode
maxVertexCountNumber of vertices
maxIndexCountNumber of indices (do not use the index array if 0)

Member Function Documentation

UIPrimitiveVertex GetVertex ( int  index)

Obtains the vertex.

Parameters:
indexIndex
Returns:
Vertex
void SetIndices ( ushort[]  indices)

Sets the index array.

Parameters:
indicesIndex array

Property Documentation

int IndexCount [get, set]

Obtains and sets the number of indices.

Exceptions:
ArgumentOutOfRangeExceptionA negative value or a value greater than MaxIndexCount is set.
int VertexCount [get, set]

Obtains and sets the number of vertices.

Exceptions:
ArgumentOutOfRangeExceptionA negative value or a value greater than MaxVertexCount is set.