MeshSubset
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 |
Summary
Public constructors |
|---|
MeshSubset( |
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 |
Public constructors
MeshSubset
MeshSubset(
topology: MeshSubsetTopology,
indexOffset: @IntRange(from = 0) Int,
indexCount: @IntRange(from = 0) Int
)
| Parameters | |
|---|---|
topology: MeshSubsetTopology |
The |
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
Public properties
indexOffset
val indexOffset: Int
The offset (in number of indices, not bytes) to the first index in the index buffer.
topology
val topology: MeshSubsetTopology
The MeshSubsetTopology of the primitives to draw.