gpu_get_tex_mip_enable

With this function you can get whether mipmapping is switched off, switched on for everything or switched on only for texture groups selected in the Texture Group Manager. The function will return one of the constants listed below, with the default setting being mip_markedonly.

 

Syntax:

gpu_get_tex_mip_enable();

 

Returns:

Constant

Mipmapping Constant
ConstantDescription
mip_offMipmapping is disabled.
mip_onMipmapping for all textures is enabled.
mip_markedonlyMipmapping is enabled for textures that have it enabled in the Texture Group options (default).

 

Example:

if (gpu_get_tex_mip_enable != mip_on)
{
    gpu_set_tex_mip_enable(mip_on);
}

The above code will check to see if mipmapping is enabled and if it is not, it will enable it.