NNS_G3dForceBindMdlTex

C Specification

#include <nnsys/g3d/kernel.h>
BOOL
NNS_G3dForceBindMdlTex(
NNSG3dResMdl*           pMdl,
const NNSG3dResTex*     pTex,
u32                     texToMatListIdx,
u32                     texIdx
);

Arguments

pMdl Pointer to the model resource
pTex Pointer to the texture resource
texToMatListIdx Texture index for the material list directory contained within the model resource
texIdx Texture index

Return Values

Returns TRUE if the bind succeeds

Description

There is a dictionary in the model resource that references the material list that uses the texture corresponding the texture name. The material group is referenced with the texToMatListIdx index when the dictionary is using index referencing; that material group is forced to associate with the number texIdx texture in the texture block. This can be used to bind material to a texture that does not match the specified texture name.

See Also

NNS_G3dBindMdlTex, NNS_G3dBindMdlTexEx, NNS_G3dReleaseMdlTex, NNS_G3dReleaseMdlTexEx

Revision History

08/02/2004 Initial version.