# Class: comparemode

For some rendering operations you can set compare behavior. eg. GREATER means a value passes when greater than a given user threshold.

## Hierarchy

    o-+ renderinterface
      o-+ comparemode

## Methods:

### Method overview:

- always
- disable
- equal
- gequal
- greater
- lequal
- less
- never
- notequal
- run

always ()
  returns: (comparemode)
  any value passes
disable ()
  returns: (comparemode)
  removes setting the compare, warning if rfAlphatest is still true you will get undefined behavior
equal ()
  returns: (comparemode)
gequal ()
  returns: (comparemode)
  greater or equal
greater ()
  returns: (comparemode)
lequal ()
  returns: (comparemode)
  less or equal
less ()
  returns: (comparemode)
never ()
  returns: (comparemode)
  no value passes
notequal ()
  returns: (comparemode)
run (comparemode,float value, float ref)
  returns: (boolean)
  runs the comparemode and returns result

## Inherited Methods: