Writes data from the array to the index buffer.
| C# |
public void SetData<T>( T[] data, DataWriteOptions writeOptions ) where T : struct, new()
- T
- The type of data in the index buffer - int or short.
- data (array<T>[]()[][])
- Array to copy the data from
- writeOptions (DataWriteOptions)
- Write options, used only if this is a dynamic buffer. None, discard, no overwrite
See implementors for exceptions that may occur.
| 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)