Primitive. More...
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. | |
Primitive.
| UIPrimitive | ( | DrawMode | drawMode, |
| int | maxVertexCount | ||
| ) |
Constructor.
| drawMode | Rendering mode |
| maxVertexCount | Number of vertices |
| UIPrimitive | ( | DrawMode | drawMode, |
| int | maxVertexCount, | ||
| int | maxIndexCount | ||
| ) |
Constructor.
| drawMode | Rendering mode |
| maxVertexCount | Number of vertices |
| maxIndexCount | Number of indices (do not use the index array if 0) |
| UIPrimitiveVertex GetVertex | ( | int | index | ) |
Obtains the vertex.
| index | Index |
| void SetIndices | ( | ushort[] | indices | ) |
Sets the index array.
| indices | Index array |
int IndexCount [get, set] |
Obtains and sets the number of indices.
| ArgumentOutOfRangeException | A negative value or a value greater than MaxIndexCount is set. |
int VertexCount [get, set] |
Obtains and sets the number of vertices.
| ArgumentOutOfRangeException | A negative value or a value greater than MaxVertexCount is set. |