@ExperimentalCustomMeshApi
public final 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(
    @NonNull MeshSubsetTopology topology,
    @IntRange(from = 0) int indexOffset,
    @IntRange(from = 0) int indexCount
)

Public methods

boolean
equals(Object other)
final int

The number of indices to draw.

final int

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

final @NonNull MeshSubsetTopology

The MeshSubsetTopology of the primitives to draw.

int
@NonNull String

Public constructors

MeshSubset

Added in 1.0.0-alpha15
public MeshSubset(
    @NonNull MeshSubsetTopology topology,
    @IntRange(from = 0) int indexOffset,
    @IntRange(from = 0) int indexCount
)
Parameters
@NonNull MeshSubsetTopology topology

The MeshSubsetTopology of the primitives to draw.

@IntRange(from = 0) int indexOffset

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

@IntRange(from = 0) int indexCount

The number of indices to draw.

Public methods

equals

public boolean equals(Object other)

getIndexCount

Added in 1.0.0-alpha15
public final int getIndexCount()

The number of indices to draw.

getIndexOffset

Added in 1.0.0-alpha15
public final int getIndexOffset()

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

getTopology

Added in 1.0.0-alpha15
public final @NonNull MeshSubsetTopology getTopology()

The MeshSubsetTopology of the primitives to draw.

hashCode

public int hashCode()

toString

public @NonNull String toString()