CompareFunction


public final class CompareFunction

Defines the comparison function used for depth and stencil tests.

Summary

Constants

Always

public static final int Always = 8

The comparison always passes.

Equal

public static final int Equal = 3

The comparison passes if the new value is equal to the existing value.

Greater

public static final int Greater = 5

The comparison passes if the new value is greater than the existing value.

GreaterEqual

public static final int GreaterEqual = 7

The comparison passes if the new value is greater than or equal to the existing value.

Less

public static final int Less = 2

The comparison passes if the new value is less than the existing value.

LessEqual

public static final int LessEqual = 4

The comparison passes if the new value is less than or equal to the existing value.

Never

public static final int Never = 1

The comparison never passes.

NotEqual

public static final int NotEqual = 6

The comparison passes if the new value is not equal to the existing value.

Undefined

public static final int Undefined = 0

Indicates that no compare function is specified.

Public methods

toString

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