SetIndexBufferOffset

Sets the offset for an Index Buffer.
It is important call this function before updating the vertex buffer.

Syntax

public const string EngineDLL = @"engine.dll";[DllImport(EngineDLL, EntryPoint = "SetIndexBufferOffset")]
public static extern void SetIndexBufferOffset(Int64 model, Int64 offset);    

Property model

Size: 64 bit / 8 byte (value)
The handle to the model. The model handle is static during its existance. Several models can be opened simultaniously within one session. Different models are always independent, threads are allowed to be running on different models simultaniously.

Property offset

Size: 64 bit / 8 byte (value)
The given offset for all index buffer calls to interpret the given memory arrays. If an index array contains int32_t / Int32 elements than an offset of 10 will interpret any index array feeded to the API calls as it was 40 bytes (i.e. 10 * 4 bytes) further / higher.