pset_facet_cull_mode(3g) — Subroutines
Name
pset_facet_cull_mode − Sets the facet culling mode attribute to the specified mode.
Operating States: PHOP, ∗, STOP, ∗
PHIGS PLUS function
Creates a structure element
Syntax
void pset_facet_cull_mode (
Pfacet_cull_mode mode /∗ (I) Facet culling mode ∗/
)
Data Structures
typedef enum {
PFACET_CULL_NONE, /∗ No culling. This is the default
value. ∗/
PFACET_CULL_BACKFACING, /∗ Cull back-facing surfaces. ∗/
PFACET_CULL_FRONTFACING /∗ Cull front-facing surfaces. ∗/
} Pfacet_cull_mode;
Description
pset_facet_cull_mode inserts a structure element that sets the facet culling mode attribute to the specified mode. If the mode value is PFACET_CULL_BACKFACING, Digital PHIGS culls all back-facing surfaces and renders only front-facing surfaces. If the mode value is PFACET_CULL_FRONTFACING, Digital PHIGS culls all front-facing surfaces and renders only back-facing surfaces. If the mode value is PFACET_CULL_NONE, Digital PHIGS renders both back- and front-facing surfaces.
Depending on the edit mode, this function either inserts the new structure element directly after the element indicated by the pointer or replaces the element indicated by the pointer. The pointer then points to the new set facet culling mode element.
If Digital PHIGS is in immediate mode, it performs this function immediately, but the function does not create a structure element.
See Also
pset_facet_disting_mode