##### Ninja Library - Texture Function

# njReLoadRectangleTexturePartNumG

Reload texture rectangle part

### FORMAT

`

  Sint32 njReLoadRectangleTexturePartNumG( globalIndex, *texaddr, attr, *p )
  Uint32 globalIndex
  void *texaddr
  Uint32 attr
  Uint32 *p

`

### PARAMETER

  `globalInex` | Global index number
  `*texaddr` | Address of either file name or texture memory
  `attr` | Texture attribute
  `*p` | p[7] pointer
  `` | p[0] : width Reloading part width
  `` | p[1] : height Reloading part height
  `` | p[2] : dst_x Reloading destination start x coordinate (left 0)
  `` | p[3] : dst_y Reloading destination start y coordinate (upper 0)
  `` | p[4] : src_x Reloading source start x coordinate (left 0)
  `` | p[5] : src_y Reloading source start y coordinate (upper 0)
  `` | p[6] : src_w Reloading source texture width

### RETURN

  1 | Successful |
  -1 | Failure |

### DESCRIPTION

  Reloads the texture rectangle part of the global index number, globalIndex.

  Usable textures are the Rectangle format or the Stride format texture and same type of texture as that previously loaded.

  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.

  The rectangle part of the transfer destination is (dst_x, dst_y) - (dst_x+width, dst_y+height). The rectangle part of the transfer source is (src_x, src_y) - (scr_x+width, scr_y+height). Enter the texture width of the transfer source for src_w. If scr_w is 0, the transfer source texture size will be regarded as (width, height). In this case, src_x, src_y are ignored.

### EXAMPLE

      p[0] = 128; /* width */
      p[1] = 128; /* height */
      p[2] = 100; /* dst_x */
      p[3] = 100; /* dst_y */
      p[4] = 100; /* src_x */
      p[5] = 100; /* src_y */
      p[6] = 256; /* src_w */
      njReLoadRectangleTexturePartNumG(0,"src.pvr",NJD_TEXATTR_TYPE_FILE,p);

### NOTE

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

### REFERENCE

  `njReLoadRectangleTexturePartNum()
  `

njReLoadRectangleTexturePartNumG

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999