##### Kamui2 Library - ストリップデータ構築関数

# kmGenerateStripHead11

レンダリングパラメータ(KMSTRIPHEAD)の構築(VertexType11用)

### 書式

> `KMSTATUS kmGenerateStripHead11( pStripHead, pStripContext )
> PKMSTRIPHEAD pStripHead
> PKMSTRIPCONTEXT pStripContext
> `

### 引数

> pStripHead | (出力)KMSTRIPHEADへのポインタ
> pStripContext | (入力)KMTWOVOLUMESTRIPCONTEXTへのポインタ

### 戻り値

> KMSTATUS_SUCCESS | 成功
> KMSTATUS_INVALID_ADDRESS | pStripHeadまたはpStripContextが不正(NULL)
> KMSTATUS_INVALID_SETTING | pStripContextのサイズ設定が不正

### 解説

> KMTWOVOLUMESTRIPCONTEXTからVertexType11用レンダリングパラメータ(KMSTRIPHEAD)の構築を行います。

> KMTWOVOLUMESTRIPCONTEXT内の下記に示すメンバに使用パラメータを設定してください。 すべて設定されていない場合の動作は保証しません。

> - pStripContext->nSize ( = sizeof(KMTWOVOLUMESTRIPCONTEXT) )
> - pStripContext->StripControl.nListType
> - pStripContext->StripControl.nUserClipMode
> - pStripContext->StripControl.bOffset
> - pStripContext->StripControl.bGouraud
> - pStripContext->ObjectControl.nDepthCompare
> - pStripContext->ObjectControl.nCullingMode
> - pStripContext->ObjectControl.bZWriteDisable
> - pStripContext->ObjectControl.bDCalcControl
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].nSRCBlendingMode
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].nDSTBlendingMode
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].bSRCSelect
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].bDSTSelect
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].nFogMode
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].bColorClamp
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].bUseAlpha
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].bIgnoreTextureAlpha
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].nFlipUV
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].nClampUV
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].nFilterMode
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].bSuperSampleMode
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].dwMipmapAdjust
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].nTextureShadingMode
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].pTextureSurfaceDesc
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].nSRCBlendingMode
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].nDSTBlendingMode
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].bSRCSelect
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].bDSTSelect
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].nFogMode
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].bColorClamp
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].bUseAlpha
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].bIgnoreTextureAlpha
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].nFlipUV
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].nClampUV
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].nFilterMode
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].bSuperSampleMode
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].dwMipmapAdjust
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].nTextureShadingMode
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].pTextureSurfaceDesc

> パレットテクスチャ使用時は、下記メンバの設定が必要です。
> - pStripContext->ImageControl[KM_IMAGE_PARAM1].dwPaletteBank
> - pStripContext->ImageControl[KM_IMAGE_PARAM2].dwPaletteBank
> 引数pStripContextには、KMTWOVOLUMESTRIPCONTEXTへのポインタを指定します。 PKMSTRIPCONTEXT型へキャストして設定してください。

### 用例

>     KMSTRIPHEAD StripHead;
>     KMTWOVOLUMESTRIPCONTEXT TwoVolStripContext;
>     	:
>     TwoVolStripContext.nSize = sizeof(KMTWOVOLUMESTRIPCONTEXT);
>     kmGenerateStripHead11( &StripHead, (PKMSTRIPCONTEXT)&TwoVolStripContext );

kmGenerateStripHead11

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