njSetTextureInfo | Japanese
    <-|INDEX|->
Set data into texture name structure

### FORMAT

      #include <Ninja.h>
      njSetTextureInfo(*info, *tex, Type, nWidth, nHeight)
      NJS_TEXINFO *info
      Uint16       *tex
      Sint32       Type
      Sint32       nWidth
      Sint32       nHeight

### PARAMETERS

*info
  texture information (output)
*tex
  memory texture pointer
Type
  texture type
nWidth
  texture width size
nHeight
  texture height size

### RETURN VALUE

  None

### FUNCTION

- Sets texture data info texture information structure.
- For Type, color format and category code are set.
  Set all the information into addr of njSetTextureName.

  Color format

  NJD_TEXFMT_ARGB_1555 |
  NJD_TEXFMT_RGB_565 |
  NJD_TEXFMT_ARGB_4444 |
  NJD_TEXFMT_YUV_422 | currently not used
  NJD_TEXFMT_BUMP | currently not used

  Category code

  NJD_TEXFMT_TWIDDLED |
  NJD_TEXFMT_TWIDDLED_MM |
  NJD_TEXFMT_VQ | currently not used
  NJD_TEXFMT_VQ_MM | currently not used
  NJD_TEXFMT_PALETTIZE4 | currently not used
  NJD_TEXFMT_PALETTIZE4_MM | currently not used
  NJD_TEXFMT_PALETTIZE8 | currently not used
  NJD_TEXFMT_PALETTIZE8_MM | currently not used
  NJD_TEXFMT_RECTANGLE |
  NJD_TEXFMT_STRIDE |

### EXAMPLE

      NJS_TEXINFO Info;
      NJS_TEXNAME texname[2];

      NJS_TEXLIST texlist ={texname,2};

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

      njInitTexture(texmemlist,2);

      njSetTextureInfo(&Info,Image,
                      NJD_TEXFMT_RECTANGLE |
                      NJD_TEXFMT_ARGB_1555 ,256,256);

      njSetTextureName(&texname[0],"file0.pvr",0,
                      NJD_TEXATTR_TYPE_FILE |
                      NJD_TEXATTR_GLOBALINDEX );

      njSetTextureName(&texname[1],&Info,1,
                      NJD_TEXATTR_TYPE_MEMORY |
                      NJD_TEXATTR_GLOBALINDEX );

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

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

      /* Set the texlist #1 texture as the current texture Image */
      njSetTextureNum(1);

              :
      Drawing textures  using memorytexture Image.
              :

### NOTES

  See Texture Guide for more information

### RELATED TOPICS

  njSetTextureName

njSetTextureInfo |
    <-|INDEX|->