njReleaseTextureNumG | Japanese
    <-|INDEX|->
Releases texture memory

### FORMAT

      #include <Ninja.h>
      Sint32 njReleaseTextureNumG(globalIndex);
      Uint32 globalIndex

### PARAMETERS

globalIndex
  Global index number

### RETURN VALUE

Successful
  1
Failed
  -1

### FUNCTION

- Releases texture specified by globalIndex in the current texture list from texture memory.

### EXAMPLE

      NJS_TEXNAME texname[2];

      NJS_TEXLIST texlist ={texname,2};

       /* Prepare to read in two textures */
      NJS_TEXMEMLIST texmemlist[2];

      njInitTexture(texmemlist,2);

      njSetTextureName(&texname[0],"file1.pvr",100,
                      NJD_TEXATTR_TYPE_FILE |
                      NJD_TEXATTR_GLOBALINDEX );

      njSetTextureName(&texname[1],"file2.pvr",200,
                      NJD_TEXATTR_TYPE_FILE |
                      NJD_TEXATTR_GLOBALINDEX );

      /* load texture */
      njLoadTexture(&texlist);

       /* set current texture list*/
      njSetTexture(&texlist);

       /* Release the global index number 100 texture
        * in the texlist file1.pvr
        */
      njReleaseTextureNumG(100);

### NOTES

- If the texture is registered in another texture list, the texture will not be released from texture memory unless all other occupying lists release the texture.
- Refer to Texture Guide for more details.

### RELATED TOPICS

  njReleaseTextureAll
  njReleaseTexture
  njReleaseTextureNum

njReleaseTextureNumG |
    <-|INDEX|->