#include <BlendSpriteState.h>
Inheritance diagram for Lamp::BlendSpriteState:
Public Types | |
enum | BlendMode { blendModeDisable = 0, blendModeAdd, blendModeSubtract, blendModeInverseSubtract, blendModeMinimum, blendModeMaximum, blendModeMax } |
ブレンドモード | |
enum | BlendState { blendStateZero = 0, blendStateOne, blendStateSourceColor, blendStateInverseSourceColor, blendStateSourceAlpha, blendStateInverseSourceAlpha, blendStateSourceAlphaSaturate, blendStateDestinationColor, blendStateInverseDestinationColor, blendStateDestinationAlpha, blendStateInverseDestinationAlpha, blendStateMax } |
ブレンドステート | |
Public Member Functions | |
BlendSpriteState () | |
コンストラクタ | |
BlendSpriteState (BlendMode blendMode, BlendState blendSource, BlendState blendDestination) | |
コンストラクタ | |
virtual | ~BlendSpriteState () |
デストラクタ | |
virtual const SpriteRequest * | getDefaultState () const |
デフォルトステートの取得 | |
virtual void | apply (SpriteRenderState *renderState) |
適用 | |
virtual void | setBlendMode (BlendMode blendMode) |
ブレンドモードの設定 | |
virtual BlendMode | getBlendMode () const |
ブレンドモードの取得 | |
virtual bool | isBlendEnabled () const |
ブレンドが有効か | |
virtual void | setBlendSource (BlendState blendSource) |
ブレンドソースの設定 | |
virtual BlendState | getBlendSource () const |
ブレンドソースの取得 | |
virtual void | setBlendDestination (BlendState blendDestination) |
ブレンドデスティネーションの設定 | |
virtual BlendState | getBlendDestination () const |
ブレンドデスティネーションの取得 | |
Static Public Member Functions | |
const String & | blendModeToString (BlendMode blendMode) |
ブレンドモードから文字列への変換 | |
BlendMode | blendModeFromString (const String &blendModeString) |
文字列からブレンドモードへの変換 | |
const String & | blendStateToString (BlendState blendState) |
ブレンドステートから文字列への変換 | |
BlendState | blendStateFromString (const String &blendStateString) |
文字列からブレンドステートへの変換 | |
Static Public Attributes | |
const BlendSpriteState | translucent |
半透明 | |
const BlendSpriteState | addState |
加算 | |
const BlendSpriteState | defaultState |
デフォルト |
Definition at line 36 of file BlendSpriteState.h.
|
コンストラクタ
Definition at line 75 of file BlendSpriteState.cpp. References Assert. |
|
適用
Implements Lamp::SpriteState. Definition at line 91 of file BlendSpriteState.cpp. References Lamp::RenderingDevice::setBlending(), and Lamp::RenderingDevice::setBlendMode(). |
|
文字列からブレンドモードへの変換
Definition at line 111 of file BlendSpriteState.cpp. References BlendMode, Lamp::String::equals(), and ErrorOut. |
|
ブレンドモードから文字列への変換
Definition at line 104 of file BlendSpriteState.cpp. References Assert. |
|
文字列からブレンドステートへの変換
Definition at line 132 of file BlendSpriteState.cpp. References BlendState, Lamp::String::equals(), and ErrorOut. |
|
ブレンドステートから文字列への変換
Definition at line 125 of file BlendSpriteState.cpp. References Assert. |
|
ブレンドデスティネーションの取得
Definition at line 209 of file BlendSpriteState.h. References BlendState. |
|
ブレンドモードの取得
Definition at line 169 of file BlendSpriteState.h. References BlendMode. |
|
ブレンドソースの取得
Definition at line 193 of file BlendSpriteState.h. References BlendState. |
|
デフォルトステートの取得
Implements Lamp::SpriteState. Definition at line 140 of file BlendSpriteState.h. References defaultState. |
|
ブレンドが有効か
Definition at line 175 of file BlendSpriteState.h. |
|
ブレンドデスティネーションの設定
Definition at line 200 of file BlendSpriteState.h. References Assert. |
|
ブレンドモードの設定
Definition at line 160 of file BlendSpriteState.h. References Assert. |
|
ブレンドソースの設定
Definition at line 184 of file BlendSpriteState.h. References Assert. |