Tesla Graphics Engine Documentation (January 2012)
SetData<(Of <(<'T>)>)> Method (data, startIndex, elementCount, offsetInBytes)
TeslaTesla.GraphicsIndexBufferSetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32, Int32)
Writes data from the array to the index buffer.
Declaration Syntax
C#
public void SetData<T>(
	T[] data,
	int startIndex,
	int elementCount,
	int offsetInBytes
)
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
offsetInBytes (Int32)
Offset from the start of the index buffer at which to start writing at
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)