VertexArray

Description

abstract class Tinman.Terrain.Vertices.VertexArray<T>

Derived from

CapacityBase abstract
IVertexArray

Extended by

Double0 abstract
Float0 abstract
Int0 abstract
Long0 abstract

Abstract base class for IVertexArray implementations.

Public / Attributes

X


public readonly attribute X → (T [ ])

The vertex data array elements.

Protected / Constructors

Vertex​Array


protected constructor VertexArray → (3)

capacity in : int32

[>0]
The capacity, in vertex elements.

tupleSize in : int32

[1..4]
The vertex element tuple size.

tupleType in : TupleType

The tuple type.

Creates a new instance of VertexArray.

Protected / Methods

Do​Copy​Vertex​Data

2 overloads


protected abstract method DoCopyVertexData1 → (4)

sourceIndex in : int32

Index of first vertex to read from this array.

target in : IVertexCopy

The target vertex array.

targetIndex in : int32

Index of first vertex to write to the target array.

count in : int32

The number of vertices to copy.

Copies vertex data from this array to the given array.


protected abstract method DoCopyVertexData2 → (2)

from in : int32

Index of the source vertex.

to in : int32

Index of the target vertex.

Copies vertex data within this vertex array.

To​D


protected abstract method ToD → (1)

value in : T

The array element value.

returns → float64

The resulting value.

Returns the 64-bit floating-point value for the given array element value.

To​F


protected abstract method ToF → (1)

value in : T

The array element value.

returns → float32

The resulting value.

Returns the 32-bit floating-point value for the given array element value.

To​I


protected abstract method ToI → (1)

value in : T

The array element value.

returns → int32

The resulting value.

Returns the 32-bit integer value for the given array element value.

To​L


protected abstract method ToL → (1)

value in : T

The array element value.

returns → int64

The resulting value.

Returns the 64-bit integer value for the given array element value.