njSetTexture | Japanese
    <-|INDEX|->
Set current texture list

### FORMAT

      #include <Ninja.h>
      Sint32 njSetTexture(*texlist);
      NJS_TEXLIST *texlist

### PARAMETERS

*texlist
  NJS_TEXLIST structure pointer

### RETURN VALUE

Successful
  1
Failed
  -1

### FUNCTION

- Set texlist as the curent texture list

### EXAMPLE

      NJS_TEXNAME texname[2];
      NJS_TEXNAME texname2[2];

      NJS_TEXLIST texlist ={texname,2};
      NJS_TEXLIST texlist ={texname2,2};

      /* Prepare to read three textures */
      NJS_TEXMEMLIST texmemlist[3];

      njInitTexture(texmemlist,3);

      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 );

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

      njSetTextureName(&texname2[1],"file3.pvr",1,
                      NJD_TEXATTR_TYPE_FILE |
                      NJD_TEXATTR_GLOBALINDEX );

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

      /* Load texture */
      njLoadTexture(&texlist2);

      /* Set current texture list to texlist */
      /* no problem if it's done prior to executing njLoadTexture */
      njSetTexture(&texlist);

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

              :
      Drawing textures  using file1.pvr
              :

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

      /* Set current texture to texlist2 #1 texture   file3.pvr */
      njSetTextureNum(1);

              :
      Drawing textures  using file3.pvr
              :

### NOTES

- Current texture list won't be changed until next time njSetTexturen is executed.
- All texture related functions such as njXXXXNum and njXXXXNumG will work with current texture list.
- Refer to Texture guide for more information.

### RELATED TOPICS

  njSetTextureNum
  njSetTextureNumG

njSetTexture |
    <-|INDEX|->