Kamui2 Library - 描画パラメータ設定(Kamui1互換用)関数

kmChangeContextIntensityMode

IntensityModeの変更

書式

KMSTATUS kmChangeContextIntensityMode( pVertexBuffDesc, nIntensityMode )
PKMVERTEXBUFFDESC pVertexBuffDesc
KMCOLORTYPE nIntensityMode

引数

pVertexBuffDesc   (入力/出力)KMVERTEXBUFFDESCへのポインタ
nIntensityMode   (入力)IntensityMode

戻り値

KMSTATUS_SUCCESS   成功

解説

kmSetVertexRenderState()関数/kmSetStripHead()関数でpVertexBuffDesc->pGlobalParamに登録した レンダリングパラメータのIntensityModeを変更します。 対応する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のみ設定可能

引数 nIntensityModeには、次の IntensityModeを設定します。


備考

この関数は、kmStartVertexStrip()関数でストリップを開始する前に pVertexBuffDesc->pGlobalParam の一部を変更します。事前に同一パス内において、pVertexBuffDesc->pGlobalParamへレンダリングパラメータを登録していない場合の動作は保証しません。

参照

kmSetStripHead()
 レンダリングパラメータ(KMSTRIPHEAD)の登録
kmSetVertexRenderState()
 レンダリングパラメータ(KMVERTEXCONTEXT)の登録(通常時)
kmStartVertexStrip()
 頂点データストリップの開始

kmChangeContextIntensityMode
COPYRIGHT © NEC Corporation / © SEGA ENTERPRISES, LTD., 1998-2000