CompareFunction
class CompareFunction
Defines the comparison function used for depth and stencil tests.
Summary
Constants |
|
|---|---|
const Int |
Always = 8The comparison always passes. |
const Int |
Equal = 3The comparison passes if the new value is equal to the existing value. |
const Int |
Greater = 5The comparison passes if the new value is greater than the existing value. |
const Int |
GreaterEqual = 7The comparison passes if the new value is greater than or equal to the existing value. |
const Int |
Less = 2The comparison passes if the new value is less than the existing value. |
const Int |
LessEqual = 4The comparison passes if the new value is less than or equal to the existing value. |
const Int |
Never = 1The comparison never passes. |
const Int |
NotEqual = 6The comparison passes if the new value is not equal to the existing value. |
const Int |
Undefined = 0Indicates that no compare function is specified. |
Constants
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.