IndexBuffer

expect interface IndexBuffer : AutoCloseable(source)

Represents an abstraction of an index buffer used in rendering operations.

Index buffers are used to store indices that define the order in which vertices are processed by the rendering pipeline. This interface provides functionality to manage and destroy an index buffer, as well as query its properties.

actual interface IndexBuffer : AutoCloseable(source)
actual interface IndexBuffer : AutoCloseable(source)

Types

Link copied to clipboard
expect object Companion
actual object Companion
actual object Companion

Properties

Link copied to clipboard
expect abstract val indexCount: Int
actual abstract val indexCount: Int
actual abstract val indexCount: Int
Link copied to clipboard
expect abstract val session: Session?
actual abstract val session: Session?
actual abstract val session: Session?
Link copied to clipboard
expect abstract val type: IndexType
actual abstract val type: IndexType
actual abstract val type: IndexType

Functions

close
Link copied to clipboard
expect abstract fun close()
abstract fun close()
abstract fun close()
Link copied to clipboard
expect abstract fun destroy()
actual abstract fun destroy()
actual abstract fun destroy()
Link copied to clipboard
abstract fun read(data: ByteBuffer, offsetInBytes: Int = 0)

Reads data from the buffer into the provided ByteBuffer starting at the specified offset.

Link copied to clipboard
Link copied to clipboard
abstract fun write(data: ByteBuffer, offsetInBytes: Int = 0)

Writes the provided data to the buffer at the specified offset.