##### Ninja Library - Texture Function

# njSetPvmTextureList

Sets texture list for PVM file loading

### FORMAT

`

  void njSetPvmTextureList( *texlist, *texname, *filename, size )
  NJS_TEXLIST *texlist
  NJS_TEXNAME *texname
  char *filename
  Sint32 size

`

### PARAMETER

  `*texlist` | Texture list
  `*texname` | Size component of texture name array
  `*filename` | File name character string, specified as filename[size][28]
  `size` | Number of textures in PVM

### RETURN

  None

### DESCRIPTION

  Creates a texture list to be used by the `njLoadTexturePvmFile()` function. For the filename array, specify 28 character type arrays as the size component.

### EXAMPLE

      When PVM file has 20 textures

      NJS_TEXNAME texname[20];
      NJS_TEXLIST texlist;
      char filename[20][28];
      NJS_TEXMEMLIST texmemlist[20];
      Sint8 *texbuf;
      njSetPvmTextureList( &texlist, texname,(char*)filename,20);
      njInitTexture(texmemlist,20);
      /* Specify 4096 bytes buffer. Size must be at least 2048 bytes. */
      texbuf = syMalloc(4096);
      njInitTextureBuffer(texbuf,4096);
      /* Load PVM textures */
      njLoadTexturePvmFile("file1.pvm",&texlist);
      /* After loading, the buffer can be freed */
      syFree(texbuf);

### REFERENCE

  `njLoadTexturePvmFile()
  `

njSetPvmTextureList

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999