#include <material.h>
Public Types | |
enum | SRCBLENDMODE { SRC_ONE = 0x00000000, SRC_ZERO = 0x00000001, SRC_DESTCOLOR = 0x00000004, SRC_ONEMINUSDESTCOLOR = 0x00000005, SRC_SRCCOLOR = 0x00000007, SRC_FACTOR = 0x00000008, SRC_SRCALPHA = 0x00000009, SRC_ONEMINUSSRCALPHA = 0x0000000a, SRC_DESTALPHA = 0x0000000c, SRC_ONEMINUSDESTALPHA = 0x0000000d , SRCBITS = 0x0000000f } |
Source blend modes Source factor (S_factor) in blend equation, where final output fragment color is S_factor * S_rgb + D_factor * D_rgb. More... | |
enum | DESTBLENDMODE { DEST_ZERO = 0x00000000, DEST_ONE = 0x00000010, DEST_SRCCOLOR = 0x00000040, DEST_ONEMINUSSRCCOLOR = 0x00000050, DEST_ONEMINUSFACTOR = 0x00000060, DEST_SRCALPHA = 0x00000080, DEST_ONEMINUSSRCALPHA = 0x00000090, DEST_DESTALPHA = 0x000000b0, DEST_ONEMINUSDESTALPHA = 0x000000c0, DESTBITS = 0x000000f0 } |
Destination blend modes Destination factor (D_factor) in blend equation, where final output fragment color is S_factor * S_rgb + D_factor * D_rgb. More... | |
enum | BLENDMODE { NORMAL = 0x00000000, DECAL = ( SRC_SRCALPHA | DEST_ONEMINUSSRCALPHA ), DECALFACTOR = ( SRC_FACTOR | DEST_ONEMINUSFACTOR ), MODULATE = ( SRC_DESTCOLOR | DEST_ZERO ), MODULATE_ALT = ( SRC_ZERO | DEST_SRCCOLOR ), MODULATE_2X = ( SRC_DESTCOLOR | DEST_SRCCOLOR ), ADD = ( SRC_ONE | DEST_ONE ), ADDSMOOTH = ( SRC_ONE | DEST_ONEMINUSSRCCOLOR ), ADDSMOOTH_ALT = ( SRC_ONEMINUSDESTCOLOR | DEST_ONE ), ZERO = ( SRC_ZERO | DEST_ZERO ), BITS = ( SRCBITS | DESTBITS ) } |
Predefined combined blend modes. More... | |
Public Member Functions | |
BlendMode () | |
BlendMode (const BlendMode &rkMode) | |
void | Set (unsigned int uiSrcMode, unsigned int uiDestMode) |
void | Set (unsigned int uiMode) |
int | Get () const |
BlendMode & | operator= (const BlendMode &rkBlendMode) |
Static Public Member Functions | |
std::string | GetSrcModeAsString (unsigned int uiMode) |
std::string | GetDestModeAsString (unsigned int uiMode) |
unsigned int | GetSrcModeFromString (const std::string &rstrMode) |
unsigned int | GetDestModeFromString (const std::string &rstrMode) |
Public Attributes | |
float | m_fFactor |
Protected Attributes | |
unsigned int | m_uiMode |
|
|
Destination blend modes Destination factor (D_factor) in blend equation, where final output fragment color is S_factor * S_rgb + D_factor * D_rgb.
|
|
Predefined combined blend modes.
|
|
|
|
|
|
Set blend mode
|
|
Set from predefined constant
|
|
Access mode as integer
|
|
Get src mode as string
|
|
Get dest mode as string
|
|
Get src mode from string
|
|
Get dest mode from string
|
|
Copy
|
|
Src and dest blend func |
|
Factor |