API Documentation
ComparisonFunction.h
1 // ComparisonFunction.h
3 //
5 
6 namespace nkGraphics
7 {
12  {
13  FUNCTION_NEVER = 1,
14  FUNCTION_LESS = 2,
15  FUNCTION_EQUAL = 3,
17  FUNCTION_GREATER = 5,
18  FUNCTION_NOT_EQUAL = 6,
20  FUNCTION_ALWAYS = 8
21  } ;
22 
27  {
28  public :
29 
30  // Conversions
51  static COMPARISON_FUNCTION fromIndex (unsigned int value) ;
52  } ;
53 }
nkGraphics::COMPARISON_FUNCTION::FUNCTION_LESS
@ FUNCTION_LESS
Function < (less than).
nkGraphics::COMPARISON_FUNCTION::FUNCTION_GREATER
@ FUNCTION_GREATER
Function > (greater than).
nkGraphics::COMPARISON_FUNCTION::FUNCTION_ALWAYS
@ FUNCTION_ALWAYS
The function always passes.
nkGraphics::ComparisonFunctionUtils::fromString
static COMPARISON_FUNCTION fromString(nkMemory::StringView value)
nkGraphics::COMPARISON_FUNCTION::FUNCTION_NEVER
@ FUNCTION_NEVER
The function never passes.
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::COMPARISON_FUNCTION::FUNCTION_EQUAL
@ FUNCTION_EQUAL
Function == (equal).
nkGraphics::COMPARISON_FUNCTION::FUNCTION_NOT_EQUAL
@ FUNCTION_NOT_EQUAL
Function != (not equal).
nkGraphics::ComparisonFunctionUtils::fromIndex
static COMPARISON_FUNCTION fromIndex(unsigned int value)
nkGraphics::COMPARISON_FUNCTION::FUNCTION_LESS_EQUAL
@ FUNCTION_LESS_EQUAL
Function <= (less then or equal).
nkGraphics::COMPARISON_FUNCTION
COMPARISON_FUNCTION
Available comparison functions available during sampling (for samplers, and depth stencil states).
Definition: ComparisonFunction.h:12
nkGraphics::COMPARISON_FUNCTION::FUNCTION_GREATER_EQUAL
@ FUNCTION_GREATER_EQUAL
Function >= (geather than or equal).
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ComparisonFunctionUtils
Offers utility to work with the associated enumeration.
Definition: ComparisonFunction.h:27
nkGraphics::ComparisonFunctionUtils::toString
static nkMemory::StringView toString(COMPARISON_FUNCTION value)