SET FACE CULLING MODE(3P+) — Kubota Pacfic Computer Inc. (29 February 1991)
NAME
SET FACE CULLING MODE − create a structure element to set the face culling mode
SYNOPSIS
C Syntax
void
pset_face_cull_mode ( mode )
Pcull_modemode;culling mode
Required PHIGS Operating States
(PHOP, ∗, STOP, ∗)
DESCRIPTION
Purpose
SET FACE CULLING MODE creates a structure element to set the face culling mode. The attribute face culling mode defines control over the visibility of front and back facing portions of area defining primitives. See SET FACE DISTINGUISHING MODE (3P+) for details on front and back face determination.
C Input Parameters
modeA pointer to a Pcull_mode structure. A Pcull_mode structure is defined as:
typedef enum {
PCULL_NONE,
PCULL_BACKFACE,
PCULL_FRONTFACE
} Pcull_mode;
Execution
Depending on the edit mode, a SET FACE CULLING MODE element is inserted into the open structure after the element pointer or replaces the element pointed at by the element pointer. The element pointer is then updated to point to this SET FACE CULLING MODE element.
When face culling mode is None, both front and back facing portions are visible. When face culling mode is Backface, back facing portions are invisible. When it is Frontface, front facing portions are invisible.
ERRORS
005Ignoring function, function requires state (PHOP, ∗, STOP, ∗)
SEE ALSO
SET FACE DISTINGUISHING MODE (3P+)
September 02, 1992