CompareFunction


class CompareFunction


Defines the comparison function used for depth and stencil tests.

Summary

Constants

const Int
Always = 8

The comparison always passes.

const Int
Equal = 3

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

const Int

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

const Int

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

const Int
Less = 2

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

const Int

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

const Int
Never = 1

The comparison never passes.

const Int

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

const Int

Indicates that no compare function is specified.

Public companion functions

String
toString(value: Int)

Constants

Always

const val Always = 8: Int

The comparison always passes.

Equal

const val Equal = 3: Int

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

Greater

const val Greater = 5: Int

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

GreaterEqual

const val GreaterEqual = 7: Int

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

Less

const val Less = 2: Int

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

LessEqual

const val LessEqual = 4: Int

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

Never

const val Never = 1: Int

The comparison never passes.

NotEqual

const val NotEqual = 6: Int

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

Undefined

const val Undefined = 0: Int

Indicates that no compare function is specified.

Public companion functions

toString

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