# NNS_G3dForceBindMdlTex

## Syntax

      #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 | Index in the material list dictionary corresponding to a texture name existing in 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 list of materials that use the texture corresponding to a texture name. This function takes the group of materials referenced by texToMatListIdx, the index used in that dictionary when referencing by index, and forcibly associates them to the texIdx-numbered texture in the texture block. This can be used to bind a material to a texture that does not match the texture name specified by the material.

## See Also

`NNS_G3dBindMdlTex`, `NNS_G3dBindMdlTexEx`, `NNS_G3dReleaseMdlTex`, `NNS_G3dReleaseMdlTexEx`

## Revision History

2004/08/02 Initial version.

CONFIDENTIAL