##### Ninja Library - Texture Function

# njLoadTexturePvmFile

Loads PVM file

### FORMAT

`

  Sint32 njLoadTexturePvmFile( *filename, *texlist )
  const char *filename
  NJS_TEXLIST *texlist

`

### PARAMETER

  `*filename` | PVM file name
  `*texlist` | Texture list

### RETURN

  1 | Successful |
  -1 | Failed |

### DESCRIPTION

  Loads the PVM file. The texture list is the one set with `njSetPvmTextureList()` function.

### EXAMPLE

      When PVM file has 20 textures

      NJS_TEXNAME texname[20];
      NJS_TEXLIST texlist;
      char filename[20][28];
      NJS_TEXLIST 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);

njLoadTexturePvmFile

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999