With this function you can check to see whether texture filtering (linear interpolation) is enabled (returns true) or not (returns false). For more information on texture filtering, see the function gpu_set_texfilter.
gpu_get_texfilter();
Boolean(布尔值)
if gpu_get_texfilter()
{
gpu_set_texfilter(false);
}
else
{
gpu_set_texfilter(true);
}
The above code checks to see if texture filtering is on or off and switches it accordingly.