This function can be used to retrieve the backface culling mode. The returned value will be one of the following constants (the default value is cull_noculling):
- cull_noculling
- cull_clockwise
- cull_counterclockwise
gpu_get_cullmode();
Constant (see above for constants)
if gpu_get_cullmode() != cull_clockwise
{
gpu_set_cullmode(cull_clockwise);
}
The above code gets the current cull mode and if it is not cull_clockwise it is set to that constant.