##### Ninja Library - System Function

# njTextureFlipMode

Sets the texture flip

### FORMAT

`

  void njTextureFlipMode( mode )
  Int mode

`

### PARAMETER

  `mode` | Texture flip mode
  `` | NJD_TEXTUREFLIP_NOFLIP:no flip (default)
  `` | NJD_TEXTUREFLIP_FLIP_V:V flip
  `` | NJD_TEXTUREFLIP_FLIP_U:U flip
  `` | NJD_TEXTUREFLIP_FLIP_UV:UV flip

### RETURN

  None

### DESCRIPTION

  Specifies the texture flip and sets flip direction. Flip is to map texture (texture without clamp), which is already mapped repeatedly, while inverting next to each other.

### EXAMPLE

      /*  In this example, the texture is mapped while flipping it in the U direction and the V direction */
      /*  The U and V values are specified so that the texture is mapped four times */
      	poly[0].x = 100.f;
      	poly[0].y = 100.f;
      	poly[0].z = 0.5f;
      	poly[0].u = 0.f;
      	poly[0].v = 0.f;
      	poly[0].col = 0xFFFFFFFF;
      	poly[1].x = 100.f;
      	poly[1].y = 200.f;
      	poly[1].z = 0.5f;
      	poly[1].u = 0.f;
      	poly[1].v = 4.f;
      	poly[1].col = 0xFFFFFFFF;
      	poly[2].x = 300.f;
      	poly[2].y = 100.f;
      	poly[2].z = 0.5f;
      	poly[2].u = 4.f;
      	poly[2].v = 0.f;
      	poly[2].col = 0xFFFFFFFF;
      	poly[3].x = 300.f;
      	poly[3].y = 200.f;
      	poly[3].z = 0.5f;
      	poly[3].u = 4.f;
      	poly[3].v = 4.f;
      	poly[3].col = 0xFFFFFFFF;
      	/*  Clamping is not applied in either the U direction or the V direction */
      	njTextureClampMode(NJD_TEXTURECLAMP_NOCLAMP);
      	/*  The texture is flipped in both the U direction and the V direction */
      	njTextureFlipMode( NJD_TEXTUREFLIP_FLIP_UV );
      	njDrawTexture( poly, 4, 0, FALSE);

### REFERENCE

  `njTextureClampMode()
  `

njTextureFlipMode

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999