Ninja Library - System Function

njTextureFilterMode

Sets the texture filter

FORMAT

void njTextureFilterMode( mode )
Int mode

PARAMETER

 mode  Texture filter mode 
   NJD_TEXTUREFILTER_POINT_SAMPLE:Point sample (default) 
   NJD_TEXTUREFILTER_BILINEAR:Bilinear filter 
   NJD_TEXTUREFILTER_TRILINEAR:Trilinear filter 

RETURN

None

DESCRIPTION

Sets the texture filter.

EXAMPLE

Sets the texture filter to bilinear filter.
void njUserInit(void)
{
	:
 njTextureFilterMode( NJD_TEXTUREFILTER_BILINEAR );
	:
}
Sint32 njUserMain(void)
{
	:
 njDrawPolygon2D( ... );
	:
}

NOTE

If filter mode setting against model is changed by njSetConstantAttr() function, the setting is valid for later drawings. The setting needs to be set again by njTextureFilterMode() function when change is required.

REFERENCE

njSetConstantAttr()

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