D3d_get_culling - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Description

Gets the 3D backface culling mode and returns it.

NOTE: The default culling orientation is clockwise. OpenGL defaults to counter-clockwise.

Parameters

Parameter Data Type Description
none this function has no parameters

Return Values

integer: Returns the back face culling mode.

Example Call

// A good place to enable culling is when you turn on 3D rendering.
switch (d3d_get_culling()) {
  case rs_none:
    // no face culling in use
    break;
  case rs_cw:
    // clockwise face culling in use
    break;
  case rs_ccw:
    // counter-clockwise face culling in use
    break;
}

NOTOC