Back to Filament

build

docs/android/dokka/filament-android/com.google.android.filament/-index-buffer/-builder/build.md

1.75.01.0 KB
Original Source

//filament-android/com.google.android.filament/IndexBuffer/Builder/build

build

[main]
open fun build(engine: Engine): IndexBuffer

Creates and returns the IndexBuffer object. After creation, the index buffer is uninitialized. Use setBuffer to initialized the IndexBuffer.

Return

the newly created IndexBuffer object

Parameters

main

enginereference to the Engine to associate this IndexBufferwith

See also

setBuffer

Throws

IllegalStateExceptionif the IndexBuffer could not be created
RuntimeExceptionif a runtime error occurred, such as running out of memory or other resources, or if a parameter to a builder function was invalid.