VertexArrays

Description

sealed class Tinman.Terrain.Vertices.VertexArrays

A collection of CPU vertex arrays.

Public / Constructors

Vertex­Arrays


public constructor VertexArrays → (1)

capacity in : int32

[>0]
The capacity of each vertex data container in this collection, in vertices.

Creates a new instance of VertexArrays.

Public / Methods

Create­Vertex­Array


public method CreateVertexArray → (1)

semantic in : Semantic

[not-null]
The semantic.

returns → IVertexArray

The vertex data container.

Creates a new vertex data container for the given semantic, if necessary.

Get­Vertex­Array


public method GetVertexArray → (1)

semantic in : Semantic

[not-null]
The semantic.

returns → IVertexArray

The vertex data container.

Returns the vertex data container for the given semantic.

TinmanException

If no container exists for the given semantic.

Get­Vertex­Array­Null


public method GetVertexArrayNull → (1)

semantic in : Semantic

[not-null]
The semantic.

returns → IVertexArray

The vertex data container or null if no container exists for the given semantic.

Returns the vertex data container for the given semantic.

Get­Vertex­Array­Null_­Float32


public method GetVertexArrayNull_Float32 → (1)

semantic in : Semantic

[not-null]
The semantic.

returns → float32 [ ]

The vertex data container or null if no compatible container exists for the given semantic.

Returns the vertex data array for the given semantic.

Get­Vertex­Array­Null_­Float64


public method GetVertexArrayNull_Float64 → (1)

semantic in : Semantic

[not-null]
The semantic.

returns → float64 [ ]

The vertex data container or null if no compatible container exists for the given semantic.

Returns the vertex data array for the given semantic.

Get­Vertex­Array­Null_­Int32


public method GetVertexArrayNull_Int32 → (1)

semantic in : Semantic

[not-null]
The semantic.

returns → int32 [ ]

The vertex data container or null if no compatible container exists for the given semantic.

Returns the vertex data array for the given semantic.

Get­Vertex­Array­Null_­Int64


public method GetVertexArrayNull_Int64 → (1)

semantic in : Semantic

[not-null]
The semantic.

returns → int64 [ ]

The vertex data container or null if no compatible container exists for the given semantic.

Returns the vertex data array for the given semantic.

Get­Vertex­Array_­Float32


public method GetVertexArray_Float32 → (1)

semantic in : Semantic

[not-null]
The semantic.

returns → float32 [ ]

The vertex data container.

Returns the vertex data array for the given semantic.

TinmanException

If no compatible container exists for the given semantic.

Get­Vertex­Array_­Float64


public method GetVertexArray_Float64 → (1)

semantic in : Semantic

[not-null]
The semantic.

returns → float64 [ ]

The vertex data container.

Returns the vertex data array for the given semantic.

TinmanException

If no compatible container exists for the given semantic.

Get­Vertex­Array_­Int32


public method GetVertexArray_Int32 → (1)

semantic in : Semantic

[not-null]
The semantic.

returns → int32 [ ]

The vertex data container.

Returns the vertex data array for the given semantic.

TinmanException

If no compatible container exists for the given semantic.

Get­Vertex­Array_­Int64


public method GetVertexArray_Int64 → (1)

semantic in : Semantic

[not-null]
The semantic.

returns → int64 [ ]

The vertex data container.

Returns the vertex data array for the given semantic.

TinmanException

If no compatible container exists for the given semantic.

Has­Vertex­Array


public method HasVertexArray → (1)

semantic in : Semantic

[not-null]
The semantic.

returns → bool

true if the vertex array exists, false if not.

Does a vertex data array exist for the given semantic?

Set­Vertex­Array


public method SetVertexArray → (2)

semantic in : Semantic

[not-null]
The semantic.

vertexData in : IVertexArray

The vertex data container or null.

Sets the vertex data container for the given semantic.