SetIndexBufferOffset

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

Syntax

//
//   Strong typing definition
//
void            SetIndexBufferOffset(
                        OwlModel                model,
                        int64_t                 offset
                    );


//
//   Weak typing definition
//
void    __declspec(dllexport) __stdcall SetIndexBufferOffset(
                                                int64_t                 model,
                                                int64_t                 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 buffer contains int32_t / Int32 elements than an offset of 10 will interpret any index buffer feeded to the API calls as it was 40 bytes (i.e. 10 * 4 bytes) further / higher.