njLoadCacheTexture | Japanese
    <-|INDEX|->
Sets the cache information area.

### FORMAT

      #include &lt;Ninja.h&gt;
      Sint32       njLoadCacheTexture(texlist);
      NJS_TEXLIST  *texlist

### PARAMETERS

*texlist
  pointer to the NJS_TEXLIST structure

### RETURN VALUE

Successful
  1
Failed
  -1

### FUNCTION

- Load textures set to the texlist structure from cache memory to texture memory.

### EXAMPLE

      NJS_TEXNAME texname[2];
      NJS_TEXLIST texlist ={texname,2};

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

      njInitTexture(texmemlist,2);

      /* Specify to read file into cache */
      njSetTextureName(&texname[0],"file1.pvr",0,NJD_TEXATTR_TYPE_FILE|
      				NJD_TEXATTR_TYPE_CACHE|NJD_TEXATTR_GLOBALINDEX);
      /* Specify to read file into cache */
      njSetTextureName(&texname[1],"file2.pvr",1,NJD_TEXATTR_TYPE_FILE|
      				NJD_TEXATTR_TYPE_CACHE|NJD_TEXATTR_GLOBALINDEX);

      /* Load texture into cache */
      njLoadTexture(&texlist);

      /* Set texlist as the current texture */
      njSetTexture(&texlist);

      /* Read texture from cache into texture memory*/
      njLoadCacheTexture(&texlist);

      /* Set current texture as texlist #0   file1.pvr*/
      njSetTextureNum(0);

              :
        Drawing textures
              :

### NOTES

- The current texture list must be set by njSetTexture.
- The specified texture must be loaded into cache memory.
- See also Texture guide for more reference.

### RELATED TOPICS

  njLoadCacheTextureNumG

njLoadCacheTexture |
    <-|INDEX|->