此函数可用于检索背面消隐模式。返回的值将是以下常量之一(默认值为cull_noculling):
消隐模式常量 | |
---|---|
常量 | 描述 |
cull_noculling | No culling will be done |
cull_clockwise | All clockwise triangles will be culled |
cull_counterclockwise | All counter-clockwise triangles will be culled |
gpu_get_cullmode();
消隐模式常量 (see above for constants)
if (gpu_get_cullmode() != cull_clockwise)
{
gpu_set_cullmode(cull_clockwise);
}
以上代码获取当前剔除模式,如果不是cull_clockwise,则将其设置为该常量。