gpu_set_tex_mip_enable

使用此函数,您可以更改是关闭mipmap、为所有内容启用mipmap,还是仅为纹理组管理器中选定的纹理组启用mipmap。此函数需要下面列出的常量之一。

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

 

语法:

gpu_set_tex_mip_enable(setting);

参数类型描述
settingMipmapping 常量mipmap设置(常量,默认值:mip_markedonly)

 

返回:

N/A

 

例子:

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

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