gpu_get_cullmode

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):

Culling Mode Constant
ConstantDescription
cull_nocullingNo culling will be done
cull_clockwiseAll clockwise triangles will be culled
cull_counterclockwiseAll counter-clockwise triangles will be culled

 

Syntax:

gpu_get_cullmode();

 

Returns:

Culling Mode Constant (see above for constants)

 

Example:

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.