# NNS_G3dPlttSetPlttKey

## C Specification

      #include <nnsys/g3d/kernel.h>

      void
      NNS_G3dPlttSetPlttKey(
      NNSG3dResTex*   pTex,
      NNSG3dPlttKey plttKey
      );

## Arguments

pTex | Pointer to the texture resource
plttKey | Palette key that indicates the memory for the palette

## Return Values

None.

## Description

Configures the palette key which indicates the memory used to store the palette to the texture resource.

The palette key is generated using the address and size of the memory for the palette allocated in VRAM. It can be obtained by allocating the memory for the palette using the VRAM manager of the NITRO-System library. The palette key format is the same as for `NNSGfdPlttKey`.

## See Also

`NNS_G3dTexSetTexKey`

## Revision History

08/02/2004 Initial version.