njInitTexture | Japanese
    <-|INDEX|->
Sets the area used for storing texture information.

### FORMAT

      #include &lt;Ninja.h&gt;
      void njInitTexture(*addr , n);
      NJS_TEXMEMLIST *addr
      Uint32 n

### PARAMETERS

*addr
  pointer to the area holding n NJS_TEXMEMLIST structures
n
  number of textures to be used

| In order to incorporate Nindows, add 3 to the number of textures.

### RETURN VALUE

  None

### FUNCTION

- Establishes the area for storing textures by setting addr with the pointer to the NJS structure area for holding the n textures to be used.
- This function must be executed before loading textures.

### EXAMPLE

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

      NJS_TEXLIST texlist={texname,2};

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

      njInitTexture(texmemlist,2);
      /* Load the 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);

      njLoadTexture(&texlist);

      /* Set texlist as the current texture list */
      njSetTexture(&texlist);
      /* Set current texture to the texlist #0 */
      njSetTextureNum(0);

### NOTES

- The area set by this function is used internally by texture-related functions.
- For details, see the texture document.

### RELATED TOPICS

  njLoadTexture
  njLoadTextureNum
  njLoadTextureNumG

njInitTexture |
    <-|INDEX|->