kmSetVertexRenderState()関数/kmSetStripHead()関数でpVertexBuffDesc->pGlobalParamに登録したレンダリングパラメータのBlendingModeを変更します。
対応するVertexTypeは以下のようになります。
VertexType |
対応状況 |
VertexType00 |
○ |
VertexType01 |
○ |
VertexType02 |
○ |
VertexType03 |
○ |
VertexType04 |
○ |
VertexType05 |
○ |
VertexType06 |
○ |
VertexType07 |
○ |
VertexType08 |
○ |
VertexType09 |
◎ |
VertexType10 |
◎ |
VertexType11 |
◎ |
VertexType12 |
◎ |
VertexType13 |
◎ |
VertexType14 |
◎ |
VertexType15 |
○ |
VertexType16 |
○ |
VertexType17 |
× |
|
◎:KM_IMAGE_PARAM1 / KM_IMAGE_PARAM2 設定可能
○:KM_IMAGE_PARAM1のみ設定可能
引数nParam には、書き換えるパラメータを設定します。
定義 |
意味 |
KM_IMAGE_PARAM1 |
1パラメータ |
KM_IMAGE_PARAM2 |
2パラメータ |
|
引数、nSRCBlendingModおよび nDSTBlendingModeには、 BlendingModeを設定します。
- KM_BOTHINVSRCALPHA
- KM_BOTHSRCALPHA
- KM_DESTALPHA
- KM_DESTCOLOR
- KM_INVDESTALPHA
- KM_INVDESTCOLOR
- KM_INVSRCALPHA
- KM_INVSRCCOLOR
- KM_SRCALPHA
- KM_SRCCOLOR
- KM_ONE
- KM_ZERO