Kamui2 Library - 描画パラメータ設定関数

kmChangeStripSpriteOffsetColor

SpriteのOffsetColorの変更

書式

KMSTATUS kmChangeStripSpriteOffsetColor( pStripHead, dwOffsetColor )
PKMSTRIPHEAD pStripHead
KMPACKEDARGB dwOffsetColor

引数

pStripHead   (入力/出力)KMSTRIPHEADへのポインタ
dwOffsetColor   (入力)SpriteのOffsetColor

戻り値

KMSTATUS_SUCCESS   成功
KMSTATUS_INVALID_VERTEX_TYPE   現在のVertexTypeでは無効な設定

解説

kmGenerateStripHead()/kmGenerateStripHead16()で構築したKMSTRIPHEAD構造体の Sprite用OffsetColorを変更します。

対応する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のみ設定可能


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