##### Ninja Library - Texture Function

# njReLoadRectangleTexturePartNum

Reload the chunk rectangle part

### FORMAT

`

  Sint32 njReLoadRectangleTexturePartNum( n, *texaddr, attr, *p )
  Uint32 n
  void *texaddr
  Uint32 attr
  Uint32 *p

`

### PARAMETER

  `n` | Texture number of current texture list
  `*texaddr` | File name or texture memory address
  `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 texture number n of the current texture list.

  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 */
      njReLoadRectangleTexturePartNum(0,"src.pvr",NJD_TEXATTR_TYPE_FILE,p);

### NOTE

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

### REFERENCE

  `njReLoadRectangleTexturePartNumG()
  `

njReLoadRectangleTexturePartNum

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999