njLoadTextureNum | Japanese
    <-|INDEX|->
Loads textures

### FORMAT

      #include <Ninja.h>
      Sint32 njLoadTextureNum(n);
      Uint32 n

### PARAMETERS

n
  texture number in the current texture list

### RETURN VALUE

Successful
  1
Failed
  -1

### FUNCTION

- Load the number n texture in the current texture list into either texture memory or cache memory.

### EXAMPLE

      /* Set two textures */
      NJS_TEXNAME texname[2];

      NJS_TEXLIST texlist ={texname,2};

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

      njInitTexture(texmemlist,2);

       /* Set the two textures */
      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);

      /* Set texlist as the current testure list */
      /* It must be done first */
      njSetTexture(&texlist);

      /* Load texture #0  file1.pvr */
      njLoadTextureNum(0);

      /* Load texture #1  file2.pvr */
      njLoadTextureNum(1);

      /* Set current texture as texture #0 in the texlist */
      njSetTextureNum(0);

### NOTES

- njInitTexture and njSetTexture must be executed prior to executing this function. Refer to Texture Guide for more details.

### RELATED TOPICS

  njInitTexture njLoadTexture

njLoadTextureNum |
    <-|INDEX|->