gpu_get_tex_mip_enable

使用此函数,您可以了解是关闭mipmap、为所有内容启用mipmap还是仅为纹理组管理器中选定的纹理组启用mipmap。此函数将返回下面列出的常量之一,默认设置为仅mip_markedly

 

语法:

gpu_get_tex_mip_enable();

 

返回:

Constant

映射常量
常量描述
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).

 

例子:

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

以上代码将检查mipmap是否已启用,如果未启用,则将启用它。