# NNS_G3dPlttSetPlttKey

## Syntax

      #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 that indicates the memory used to store the palette in the texture resource.

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

## See Also

`NNS_G3dTexSetTexKey`

## Revision History

2008/06/20 Changed NITRO-System to TWL-System.
2004/08/02 Initial version.

CONFIDENTIAL