プリミティブマテリアル More...
#include <GxPrimitive.h>
Public Member Functions | |
初期化 | |
GxPrimitiveMaterial (void) | |
デフォルトコンストラクタ | |
GxPrimitiveMaterial (GxRenderBlendState blendState, u32 attribute, PRIMITIVE_TEXTURE_REMAP_COLOR textureRemapColor, PRIMITIVE_TEXTURE_REMAP_ALPHA textureRemapAlpha) | |
コンストラクタ | |
Public Attributes | ||
メンバ変数 | ||
union { | ||
struct { | ||
u32 _reserve:9 | ||
予備 | ||
u32 _alphaFactorDst:4 | ||
ブレンド係数 | ||
u32 _alphaFactorSrc:4 | ||
ブレンド係数 | ||
u32 _alphaOperation:3 | ||
ブレンド処理 | ||
u32 _colorFactorDst:4 | ||
ブレンド係数 | ||
u32 _colorFactorSrc:4 | ||
ブレンド係数 | ||
u32 _colorOperation:3 | ||
ブレンド処理 | ||
u32 _blendEnable:1 | ||
有効/無効 | ||
} | ||
struct { | ||
PRIMITIVE_TEXTURE_REMAP_ALPHA _textureRemapAlpha:2 | ||
テクスチャアルファチャンネルリマップ | ||
PRIMITIVE_TEXTURE_REMAP_COLOR _textureRemapColor:3 | ||
テクスチャカラーチャンネルリマップ | ||
u32 _attribute:4 | ||
属性 | ||
u32 _padding:23 | ||
BlendState用パディング | ||
} | ||
u32 _access32 | ||
データ | ||
}; | ||
GX_HANDLE | _hTexture | |
テクスチャハンドル | ||
GX_HANDLE | _hTextureSecond | |
テクスチャハンドル(2枚目) | ||
GxRenderSamplerState | _samplerState | |
サンプラステート | ||
GxCallback::GxHandlerBase | _handler | |
カスタムマテリアルコールバック | ||
void * | _pUserData | |
ユーザーカスタム情報 | ||
f32 | _colorScale | |
色スケール | ||
f32 | _alphaRefValue | |
0以上ならアルファテストシェーダーを通る | ||
u32 | _projectionMatrixId | |
2D用射影行列ID 0(デフォルト) | ||
u32 | _modifier | |
その他フラグ (enum PRIMITIVE_MODIFIER) | ||
Static Public Attributes | |
定義 | |
static const GxPrimitiveMaterial | BLEND |
ブレンド | |
static const GxPrimitiveMaterial | ADD |
加算 | |
static const GxPrimitiveMaterial | COLOR_ADD |
加算(カラーのみ) | |
static const GxPrimitiveMaterial | SUB |
減算 | |
static const GxPrimitiveMaterial | MUL |
乗算 | |
static const GxPrimitiveMaterial | OPACITY |
不透明 | |
static const GxPrimitiveMaterial | DEFAULT_3D |
3Dデフォルト | |
static const GxPrimitiveMaterial | ADD_2D |
2D加算 | |
static const GxPrimitiveMaterial | COLOR_ADD_2D |
2D加算(カラーのみ) | |
static const GxPrimitiveMaterial | SUB_2D |
2D減算 | |
static const GxPrimitiveMaterial | COLOR_SUB_2D |
2D減算(カラーのみ) | |
static const GxPrimitiveMaterial | COLOR_MULTI_2D |
2D乗算(カラーのみ) | |
static const GxPrimitiveMaterial | COLOR_SCREEN_2D |
2Dスクリーンブレンド | |
static const GxPrimitiveMaterial | DEFAULT_2D |
2Dデフォルト | |
static const GxPrimitiveMaterial | OPAQUE_2D |
2D不透明 | |
Friends | |
演算子 | |
GX_FORCE_INLINE b32 | operator== (const GxPrimitiveMaterial &material0, const GxPrimitiveMaterial &material1) |
一致 | |
GX_FORCE_INLINE b32 | operator!= (const GxPrimitiveMaterial &material0, const GxPrimitiveMaterial &material1) |
不一致 | |
プリミティブマテリアル
GxPrimitiveMaterial::GxPrimitiveMaterial | ( | GxRenderBlendState | blendState, |
u32 | attribute, | ||
PRIMITIVE_TEXTURE_REMAP_COLOR | textureRemapColor, | ||
PRIMITIVE_TEXTURE_REMAP_ALPHA | textureRemapAlpha ) |
コンストラクタ
blendState | [in] ブレンドステート |
attribute | [in] 属性 |
textureRemapColor | [in] テクスチャリマップ色 |
textureRemapAlpha | [in] テクスチャリマップアルファ値 |