PrimitiveState


class PrimitiveState


Defines the state for primitive assembly (e.g., topology, culling, winding order).

Summary

Public constructors

PrimitiveState(
    topology: Int,
    stripIndexFormat: Int,
    frontFace: Int,
    cullMode: Int,
    unclippedDepth: Boolean
)

Public properties

Int
Int
Int
Int

The type of primitive to render (e.g., triangle-list, line-strip).

Boolean

Public constructors

PrimitiveState

Added in 1.0.0-alpha01
PrimitiveState(
    topology: Int = PrimitiveTopology.TriangleList,
    stripIndexFormat: Int = IndexFormat.Undefined,
    frontFace: Int = FrontFace.CCW,
    cullMode: Int = CullMode.None,
    unclippedDepth: Boolean = false
)

Public properties

cullMode

Added in 1.0.0-alpha01
var cullModeInt

frontFace

Added in 1.0.0-alpha01
var frontFaceInt

stripIndexFormat

Added in 1.0.0-alpha01
var stripIndexFormatInt

topology

Added in 1.0.0-alpha01
var topologyInt

The type of primitive to render (e.g., triangle-list, line-strip).

unclippedDepth

Added in 1.0.0-alpha01
var unclippedDepthBoolean