##### Ninja Library - System Function

# njSetSystemAttr

Sets system attributes

### FORMAT

`

  void njSetSystemAttr( attr )
  NJS_SYS_ATTR *attr

`

### PARAMETER

  `*attr` | Pointer to attribute structure

### RETURN

  None

### DESCRIPTION

  Sets system attributes to the values stored with `njGetSystemAttr()` function.

### EXAMPLE

      NJS_SYS_ATTR attr;
      /* Set 3 modes*/
      njTextureFilterMode(NJD_TEXTUREFILTER_BILINEAR);
      njTextureClampMode(NJD_TEXTURECLAMP_NOCLAMP);
      njMipmapAdjust( 4 );
      /* Store attributes */
      njGetSystemAttr(&attr);
      /* Change attributes */
      njTextureClampMode(NJD_TEXTURECLAMP_CLAMP_UV);
      njMipmapAdjust( 3 );
      /* Drawing */
      /* Return attributes
      to this condition
      njTextureFilterMode(NJD_TEXTUREFILTER_BILINEAR);
      njTextureClampMode(NJD_TEXTURECLAMP_NOCLAMP);
      njMipmapAdjust( 4 );
      */
      njSetSystemAttr(&attr);

### REFERENCE

  `njGetSystemAttr()
  `

njSetSystemAttr

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999