@ExperimentalCustomMeshApi
class MeshSubset


Defines a subset of the mesh to draw.

A subset defines a contiguous range of indices within the MeshBuffer's index buffer that should be rendered together using a specific topology and a single Material.

Throws
IllegalArgumentException

if indexOffset or indexCount is negative.

Summary

Public constructors

MeshSubset(
    topology: MeshSubsetTopology,
    indexOffset: @IntRange(from = 0) Int,
    indexCount: @IntRange(from = 0) Int
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Int

The number of indices to draw.

Int

The offset (in number of indices, not bytes) to the first index in the index buffer.

MeshSubsetTopology

The MeshSubsetTopology of the primitives to draw.

Public constructors

MeshSubset

Added in 1.0.0-alpha15
MeshSubset(
    topology: MeshSubsetTopology,
    indexOffset: @IntRange(from = 0) Int,
    indexCount: @IntRange(from = 0) Int
)
Parameters
topology: MeshSubsetTopology

The MeshSubsetTopology of the primitives to draw.

indexOffset: @IntRange(from = 0) Int

The offset (in number of indices, not bytes) to the first index in the index buffer.

indexCount: @IntRange(from = 0) Int

The number of indices to draw.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

indexCount

Added in 1.0.0-alpha15
val indexCountInt

The number of indices to draw.

indexOffset

Added in 1.0.0-alpha15
val indexOffsetInt

The offset (in number of indices, not bytes) to the first index in the index buffer.

topology

Added in 1.0.0-alpha15
val topologyMeshSubsetTopology

The MeshSubsetTopology of the primitives to draw.