Rasterfarm-SDK
Loading...
Searching...
No Matches
Color::Function::AlphaTest Class Reference

#include <alphatest.h>

Inheritance diagram for Color::Function::AlphaTest:
Color::Function::Filter Component

Public Types

enum  DiscardTest {
  LESS = 0 ,
  LEQUAL ,
  EQUAL ,
  GEQUAL ,
  GREATER ,
  NOTEQUAL
}
 

Public Member Functions

 AlphaTest (DiscardTest discardTest, float discardReference, const Attribute &attribute)
 
virtual ~AlphaTest ()
 
virtual void create (Material *pMaterial)
 
virtual void update (Material *pMaterial)
 
virtual void addShaderResources (Material *pMaterial)
 
virtual void addShaderCode (Material *pMaterial)
 
void setDiscardReference (float discardReference)
 
void setDiscardTest (DiscardTest discardTest)
 
- Public Member Functions inherited from Color::Function::Filter
 Filter (const char *uniformName, const Attribute &attribute)
 
virtual ~Filter ()
 

Additional Inherited Members

- Protected Attributes inherited from Color::Function::Filter
String uniformName
 

Member Enumeration Documentation

◆ DiscardTest

Enumerator
LESS 
LEQUAL 
EQUAL 
GEQUAL 
GREATER 
NOTEQUAL 

Constructor & Destructor Documentation

◆ AlphaTest()

Color::Function::AlphaTest::AlphaTest ( DiscardTest discardTest,
float discardReference,
const Attribute & attribute )
Parameters
Thelogical test to perform for a given texel.
Thereference value the test performs against.

◆ ~AlphaTest()

virtual Color::Function::AlphaTest::~AlphaTest ( )
virtual

Member Function Documentation

◆ addShaderCode()

virtual void Color::Function::AlphaTest::addShaderCode ( Material * pMaterial)
virtual

◆ addShaderResources()

virtual void Color::Function::AlphaTest::addShaderResources ( Material * pMaterial)
virtual

◆ create()

virtual void Color::Function::AlphaTest::create ( Material * pMaterial)
virtual

◆ setDiscardReference()

void Color::Function::AlphaTest::setDiscardReference ( float discardReference)

◆ setDiscardTest()

void Color::Function::AlphaTest::setDiscardTest ( DiscardTest discardTest)

◆ update()

virtual void Color::Function::AlphaTest::update ( Material * pMaterial)
virtual

The documentation for this class was generated from the following file: