Tesla Graphics Engine Documentation (January 2012)
SetData<(Of <(<'T>)>)> Method (data, startIndex, elementCount, writeOptions)
TeslaTesla.GraphicsIndexBufferSetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32, DataWriteOptions)
Writes data from the array to the index buffer.
Declaration Syntax
C#
public void SetData<T>(
	T[] data,
	int startIndex,
	int elementCount,
	DataWriteOptions writeOptions
)
where T : struct, new()
Generic Template Parameters
T
The type of data in the index buffer - int or short.
Parameters
data (array<T>[]()[][])
Array to copy the data from
startIndex (Int32)
Starting index in the array at which to start copying from
elementCount (Int32)
Number of indices to write
writeOptions (DataWriteOptions)
Write options, used only if this is a dynamic buffer. None, discard, no overwrite
Remarks
See implementors for exceptions that may occur.
Exceptions
Exception Condition
TeslaException Thrown if an error occurs while writing to the index buffer

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