Tesla Graphics Engine Documentation (January 2012)
UpdateIndexData<(Of <(<'T>)>)> Method (data, startIndex, elementCount)
TeslaTesla.SceneMeshDataUpdateIndexData<(Of <<'(T>)>>)(DataBuffer<(Of <<'(T>)>>), Int32, Int32)
Updates the MeshData's index data. This applies to both the CPU copy and the GPU (IndexBuffer) copy, if the latter exists. Error will occur trying to set data that is not valid for index type already contained in the IndexBuffer.
Declaration Syntax
C#
public void UpdateIndexData<T>(
	DataBuffer<T> data,
	int startIndex,
	int elementCount
)
where T : struct, new()
Generic Template Parameters
T
Data type - int or short.
Parameters
data (DataBuffer<(Of <(<'T>)>)>)
Data to write
startIndex (Int32)
Starting index in the Data to read from
elementCount (Int32)
Number of elements to write
Exceptions
Exception Condition
ArgumentNullException Thrown if the data is null or if the data type is not valid.
ArgumentOutOfRangeException Thrown if writing to or from the buffers will be out of range.

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)