IndexBuffer

actual class IndexBuffer

A buffer containing vertex indices into a VertexBuffer.

IndexBuffer holds a sequence of indices that reference vertices in an associated VertexBuffer. Indices can be 16-bit (USHORT) or 32-bit (UINT). Typically used in conjunction with RenderableManager to define the geometry of primitives.

See also

, RenderableManager

expect class IndexBuffer

A buffer containing vertex indices into a VertexBuffer.

IndexBuffer holds a sequence of indices that reference vertices in an associated VertexBuffer. Indices can be 16-bit (USHORT) or 32-bit (UINT). Typically used in conjunction with RenderableManager to define the geometry of primitives.

See also

, RenderableManager

actual class IndexBuffer(jsIndexBuffer: IndexBuffer, val indexCount: Int = 0)

A buffer containing vertex indices into a VertexBuffer.

IndexBuffer holds a sequence of indices that reference vertices in an associated VertexBuffer. Indices can be 16-bit (USHORT) or 32-bit (UINT). Typically used in conjunction with RenderableManager to define the geometry of primitives.

See also

, RenderableManager

actual class IndexBuffer

A buffer containing vertex indices into a VertexBuffer.

IndexBuffer holds a sequence of indices that reference vertices in an associated VertexBuffer. Indices can be 16-bit (USHORT) or 32-bit (UINT). Typically used in conjunction with RenderableManager to define the geometry of primitives.

See also

, RenderableManager

actual class IndexBuffer

A buffer containing vertex indices into a VertexBuffer.

IndexBuffer holds a sequence of indices that reference vertices in an associated VertexBuffer. Indices can be 16-bit (USHORT) or 32-bit (UINT). Typically used in conjunction with RenderableManager to define the geometry of primitives.

See also

, RenderableManager

Constructors

Link copied to clipboard
constructor(jsIndexBuffer: IndexBuffer, indexCount: Int = 0)

Types

Link copied to clipboard
actual class Builder

Builder for creating IndexBuffer instances.

expect class Builder

Builder for creating IndexBuffer instances.

actual class Builder

Builder for creating IndexBuffer instances.

actual class Builder

Builder for creating IndexBuffer instances.

actual class Builder

Builder for creating IndexBuffer instances.

Properties

Link copied to clipboard
actual val indexCount: Int

Gets the number of indices in this buffer.

expect val indexCount: Int

Gets the number of indices in this buffer.

actual val indexCount: Int

Gets the number of indices in this buffer.

actual val indexCount: Int

Gets the number of indices in this buffer.

actual val indexCount: Int

Gets the number of indices in this buffer.

Link copied to clipboard
val nativeIndexBuffer: IndexBuffer

Functions

Link copied to clipboard
actual fun setBuffer(engine: Engine, data: ByteArray)

Sets the index data for this buffer.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int)

Sets the index data with offset and count.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

Sets the index data with offset, count, and optional completion callback.

expect fun setBuffer(engine: Engine, data: ByteArray)

Sets the index data for this buffer.

expect fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int)

Sets the index data with offset and count.

expect fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit? = null)

Sets the index data with offset, count, and optional completion callback.

actual fun setBuffer(engine: Engine, data: ByteArray)

Sets the index data for this buffer.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int)

Sets the index data with offset and count.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

Sets the index data with offset, count, and optional completion callback.

actual fun setBuffer(engine: Engine, data: ByteArray)

Sets the index data for this buffer.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int)

Sets the index data with offset and count.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

Sets the index data with offset, count, and optional completion callback.

actual fun setBuffer(engine: Engine, data: ByteArray)

Sets the index data for this buffer.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int)

Sets the index data with offset and count.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

Sets the index data with offset, count, and optional completion callback.