YoYo Games Wiki

d3d_set_culling(cull)

From YoYoGames Wiki

Description

The d3d_set_culling() function in Game Maker enables or disables the use of backface culling.

Arguments

  • cull (real): indicates whether or not to enable culling. true or 1 enable culling while false or 0 disable it.

Examples

d3d_set_culling(1);

This piece of code enables backface culling. The backside of triangles is no longer drawn.

Remarks

This function only works in the registered version of Game Maker.