使用此函数,您可以了解是关闭mipmap、为所有内容启用mipmap还是仅为纹理组管理器中选定的纹理组启用mipmap。此函数将返回下面列出的常量之一,默认设置为仅mip_markedly。
gpu_get_tex_mip_enable();
映射常量 | |
---|---|
常量 | 描述 |
mip_off | Mipmapping is disabled. |
mip_on | Mipmapping for all textures is enabled. |
mip_markedonly | Mipmapping 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是否已启用,如果未启用,则将启用它。