Ninja Library - System Function

njGetSystemAttr

Gets current system attributes

FORMAT

void njGetSystemAttr( attr )
NJS_SYS_ATTR *attr

PARAMETER

 *attr  Pointer to the area to store the attributes 

RETURN

None

DESCRIPTION

Stores the changes of graphic system attributes made by the following functions.

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.


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 );
	Draw
/* Return attributes
to this condition
njTextureFilterMode(NJD_TEXTUREFILTER_BILINEAR);
njTextureClampMode(NJD_TEXTURECLAMP_NOCLAMP);
njMipmapAdjust( 4 );
 */
njSetSystemAttr(&attr);

REFERENCE

njSetSystemAttr()

njGetSystemAttr
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999