StencilOperation


public final class StencilOperation


Defines the operation to perform on the stencil buffer.

Summary

Constants

static final int

Decrements the stencil value, clamping at zero.

static final int

Decrements the stencil value, wrapping on underflow.

static final int

Increments the stencil value, clamping at the maximum.

static final int

Increments the stencil value, wrapping on overflow.

static final int
Invert = 4

Inverts the bits of the stencil value.

static final int
Keep = 1

Keeps the current stencil value.

static final int

Replaces the stencil value with the reference value.

static final int

Indicates that no stencil operation is specified.

static final int
Zero = 2

Sets the stencil value to zero.

Public methods

static final @NonNull String
toString(int value)

Constants

DecrementClamp

public static final int DecrementClamp = 6

Decrements the stencil value, clamping at zero.

DecrementWrap

public static final int DecrementWrap = 8

Decrements the stencil value, wrapping on underflow.

IncrementClamp

public static final int IncrementClamp = 5

Increments the stencil value, clamping at the maximum.

IncrementWrap

public static final int IncrementWrap = 7

Increments the stencil value, wrapping on overflow.

Invert

public static final int Invert = 4

Inverts the bits of the stencil value.

Keep

public static final int Keep = 1

Keeps the current stencil value.

Replace

public static final int Replace = 3

Replaces the stencil value with the reference value.

Undefined

public static final int Undefined = 0

Indicates that no stencil operation is specified.

Zero

public static final int Zero = 2

Sets the stencil value to zero.

Public methods

toString

Added in 1.0.0-alpha05
public static final @NonNull String toString(int value)