StencilOperation


class StencilOperation


Defines the operation to perform on the stencil buffer.

Summary

Constants

const Int

Decrements the stencil value, clamping at zero.

const Int

Decrements the stencil value, wrapping on underflow.

const Int

Increments the stencil value, clamping at the maximum.

const Int

Increments the stencil value, wrapping on overflow.

const Int
Invert = 4

Inverts the bits of the stencil value.

const Int
Keep = 1

Keeps the current stencil value.

const Int

Replaces the stencil value with the reference value.

const Int

Indicates that no stencil operation is specified.

const Int
Zero = 2

Sets the stencil value to zero.

Public companion functions

String
toString(value: Int)

Constants

DecrementClamp

const val DecrementClamp = 6: Int

Decrements the stencil value, clamping at zero.

DecrementWrap

const val DecrementWrap = 8: Int

Decrements the stencil value, wrapping on underflow.

IncrementClamp

const val IncrementClamp = 5: Int

Increments the stencil value, clamping at the maximum.

IncrementWrap

const val IncrementWrap = 7: Int

Increments the stencil value, wrapping on overflow.

Invert

const val Invert = 4: Int

Inverts the bits of the stencil value.

Keep

const val Keep = 1: Int

Keeps the current stencil value.

Replace

const val Replace = 3: Int

Replaces the stencil value with the reference value.

Undefined

const val Undefined = 0: Int

Indicates that no stencil operation is specified.

Zero

const val Zero = 2: Int

Sets the stencil value to zero.

Public companion functions

toString

Added in 1.0.0-alpha05
fun toString(value: Int): String