This function is an alternative for UpdateInstanceIndexBuffer(),
in case the index buffer should be divided over a set of arrays
this function allows to fill part of the index buffer given a
certain offset and size.
Syntax
//
// Linux, MacOS and non-Visual Studio Windows solutions (pure C++11 / C++98)
//
int64_t UpdateInstanceIndexBufferTrimmed(
int64_t owlInstance,
void * indexBuffer,
int64_t offset,
int64_t size
);
//
// Visual Studio for Windows
//
__int64 __declspec(dllexport) __stdcall UpdateInstanceIndexBufferTrimmed(
__int64 owlInstance,
void * indexBuffer,
__int64 offset,
__int64 size
);
Property owlInstance
Size: 64 bit / 8 byte (value)
The handle to the specific instance in the design tree. The instance handle is static within one open model but is most probably different when the same instance is opened in another model. The instance is always exactly of one unique class.
Property indexBuffer
Size: 64 bit / 8 byte (reference)
The array of indices, this array is allocated by the host application. Depending on SetFormat() the array exists of 32 bit (4 byte) integers or 64 bit (8 byte) integeres.
Property offset
Size: 64 bit / 8 byte (value)
The given offset.
Property size
Size: 64 bit / 8 byte (value)
The given size.