kmSetVertexRenderState()関数、kmSetStripHead()関数でpVertexBuffDesc->pGlobalParamに登録したレンダリングパラメータのTextureAddressを変更します。
この関数では、TextureAddress以外は変更しないので下記のメンバに変更がない場合使用可能です。
- pTextureSurfaceDesc->PixelFormat
- pTextureSurfaceDesc->u0.USize
- pTextureSurfaceDesc->u1.VSize
- pTextureSurfaceDesc->fSurfaceFlags
上記のメンバに変更がある場合は、kmChangeContextTextureAddress()関数は使用せず、
kmChangeContextTextureSurface()関数を使用してください。
対応する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パラメータ |
|