*attr | Pointer to the area to store the attributes |
njTextureFilterMode()
njTextureClampMode()
njTextureFlipMode()
njMipmapAdjust()
njSuperSampleMode()
njPolygonCullingMode()
njColorBlendingMode()
njIgnoreTextureAlphaMode()
njTextureShadingMode()
njSetCheapShadowMode()
By using the stored values with njSetSystemAttr() function, the system can be returned to the stored state.
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 ); Draw /* Return attributes to this condition njTextureFilterMode(NJD_TEXTUREFILTER_BILINEAR); njTextureClampMode(NJD_TEXTURECLAMP_NOCLAMP); njMipmapAdjust( 4 ); */ njSetSystemAttr(&attr);