##### Ninja Library - Texture Function

# njReLoadVQCodebookNumG

Reloads VQ codebook

### FORMAT

`

  Sint32 njReLoadVQCodebookNumG( globalIndex, *texaddr, attr);
  Uint32 globalIndex
  void *texaddr
  Uint32 attr

`

### PARAMETER

  `globalIndex` | Global index number
  `*texaddr` | Address of either file name or texture memory
  `attr` | Texture attribute

### RETURN

  1 | Successful |
  -1 | Failure |

### DESCRIPTION

  Reloads the VQ texture codebook for the global index number globalIndex in the current texture list. Only VQ format textures can be reloaded. When a texture is loaded from file, NJD_TEXATTR_TYPE_FILE is specified for the attr. When a texture is loaded from memory, NJD_TEXATTR_TYPE_MEMORY is specified for the attr.

### EXAMPLE

      /*
       Change VQ codebook of global index number 0
       * file1.pvr is VQ texture
      */
      njReLoadVQCodebookNumG(0,"file1.pvr",NJD_TEXATTR_TYPE_FILE);

### NOTE

  For memory texture, the beginning of texture target must be specified.

### REFERENCE

  `njReLoadVQCodebookNum()
  `

njReLoadVQCodebookNumG

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999