# NNS_G3dForceBindMdlPltt

## Syntax

      #include <nnsys/g3d/kernel.h>

      BOOL
      NNS_G3dForceBindMdlPltt(
          NNSG3dResMdl*       pMdl,
          const NNSG3dResTex* pTex,
          u32                 plttToMatListIdx,
          u32                 plttIdx
      );

## Arguments

pMdl | Pointer to the model resource
pTex | Pointer to the texture resource
plttToMatListIdx | Index in the material list dictionary corresponding to a palette name existing in the model resource
plttIdx | Palette index in the texture resource

## 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 palette corresponding to a palette 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 plttIdx-numbered palette in the texture block. This can be used to bind a material to a palette that does not match the palette name specified by the material.

## See Also

`NNS_G3dBindMdlPltt`, `NNS_G3dBindMdlPlttEx`, `NNS_G3dReleaseMdlPltt`, `NNS_G3dReleaseMdlPlttEx`

## Revision History

2004/08/02 Initial version.

CONFIDENTIAL