# NNS_G3dTexSetTexKey

## Syntax

      #include <nnsys/g3d/kernel.h>

      void
      NNS_G3dTexSetTexKey(
          NNSG3dResTex* pTex,
          NNSG3dTexKey  texKey,
          NNSG3dTexKey  tex4x4Key
      );

## Arguments

`pTex` | Pointer to the texture resource
`texKey` | Texture key indicating the normal texture memory
`tex4x4Key` | Texture key indicating the 4x4 texel compressed texture memory

## Return Values

None.

## Description

Configures, in the texture resource, the texture keys that indicate the memory for storing normal textures and 4x4 texel compressed textures.

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

## See Also

`NNS_G3dPlttSetPlttKey`

## Revision History

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

CONFIDENTIAL