|
Function level of importance = Medium.
The function turns OFF or ON the bilinear filtering for the given polygon
Bilinear filtering is a technique for getting better looking textures. When bilinear
filtering is ON, it removes the pixelization effect from close textures.
By default the bilinear mode for all polygons is set according to the 3D card settings
Using this function one can overide the default settings for specific polygons.
Here are some reasons why one might consider turning off bilinear filtering for specific polygons
- Give the polygon a different look.
- When bilinear filtering is turned off, rendering is slightly faster.
To change the default bilinear setting for all the polygons use:
STATE_3D_card_set_bilinear_filtering()
parameters:
bilinear_mode:
ON - The default. Turns on bilinear filtering (for both the primary and the secondary bitmap).
OFF - Turns off bilinear filtering
BILINEAR_FOR_PRIMARY_TEXTURE_ONLY - Turns on bilinear only for the primary texture (each polygon could have two textures, the primary and the secondary)
BILINEAR_FOR_PRIMARY_SECONDARY_ONLY - Turns on bilinear only for the secondary texture (each polygon could have two textures, the primary and the secondary)
BILINEAR_USE_3D_CARD_DEFAULTS - Use the setting as defined by STATE_3D_card_set_bilinear_filtering. This is the default option.
Example:
STATE_polygon_set_bilinear_filtering(my_polygon, OFF);
See also STATE_polygon_set_bilinear_filtering()
|