##### Ninja Library - Texture Function

# njReleaseTextureAll

Release all texture memory

### FORMAT

`

  void njReleaseTextureAll( void )

`

### PARAMETER

  None

### RETURN

  None

### DESCRIPTION

  Release all texture memory.

### EXAMPLE

      NJS_TEXNAME texname[2];
      NJS_TEXLIST texlist ={texname,2};
      Sint8 *texbuf;
      /* Prepare to read in two textures */
      NJS_TEXMEMLIST texmemlist[2];
      njInitTexture(texmemlist,2);
      texbuf = syMalloc(0x20800);
      njInitTextureBuffer(texbuf,0x20000);
      njSetTextureName(&texname[0],"file1.pvr",0,NJD_TEXATTR_TYPE_FILE|
            NJD_TEXATTR_GLOBALINDEX);
      njSetTextureName(&texname[1],"file2.pvr",1,NJD_TEXATTR_TYPE_FILE|
            NJD_TEXATTR_GLOBALINDEX);

      /* Load texture */
      njLoadTexture(&texlist);
      syFree(texbuf);
      /* Set texlist as the current texture list */
      njSetTexture(&texlist);
      /* Set current texture to texture #0 in texlist  file1.pvr */
      njSetTextureNum(0);

          :
      /* lit. Drawing texture with texture in file1.pvr */
          :
      /* Release all textures */
      njReleaseTextureAll();

### NOTE

  If the texture is needed, it needs to be loaded by `njLoadTexture()` function. Refer to texture document for more details.

### REFERENCE

  `njReleaseTexture()
  njReleaseTextureNum()
  njReleaseTextureNumG()
  `

njReleaseTextureAll

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999