Changes TextureAddress.(KMVERTEXBUFFDESC Structure)

Prototype declaration:


KMSTATUS KMAPI
kmChangeContextTextureAddress(
        IN OUT  PKMVERTEXBUFFDESC   pVertexBuffDesc,
        IN      KMINT32             nParam,
        IN      PKMSURFACEDESC      pTextureSurfaceDesc
);

Description:

This function changes the rendering parameter TextureAddress that was registered in pGlobalParam
from pVertexBuffDesc by kmSetVertexRenderState/kmSetStripHead.
Because it does not make any changes other than in TextureAddress, this API can be used when the
following members are not being changed.
	pTextureSurfaceDesc->PixelFormat
	pTextureSurfaceDesc->u0.USize
	pTextureSurfaceDesc->u1.VSize
	pTextureSurfaceDesc->fSurfaceFlags
If there are any changes in the above members, use kmChangeContextTextureSurface,
not kmChangeContextTextureAddress.
The following is a list of supported VertexType:

VertexType00 VertexType06 VertexType12
VertexType01 VertexType07 VertexType13
VertexType02 VertexType08 VertexType14
VertexType03 VertexType09 VertexType15
VertexType04 VertexType10 VertexType16
VertexType05 VertexType11 VertexType17
: KM_IMAGE_PARAM1 / KM_IMAGE_PARAM2 can be used. : Only KM_IMAGE_PARAM1can be used.
Parameters:
pVertexBuffDesc(input/output)
        This parameter is a pointer to KMVERTEXBUFFDESC.

nParam(input)
        This parameter specifies the parameter for update.
            KM_IMAGE_PARAM1     parameter 1
            KM_IMAGE_PARAM2     parameter 2

pTextureSurfaceDesc(input)
        This parameter is a pointer to KMSURFACEDESC.
Return values:
Value Explanation
KMSTATUS_SUCCESS Success