pset_refl_model(3g) — Subroutines
Name
pset_refl_model − Sets the reflectance model used to display front-facing portions of area primitives.
Operating States: PHOP, ∗, STOP, ∗
PHIGS PLUS function
Creates a structure element
Syntax
void pset_refl_model (
Pint model /∗ (I) Reflectance model ∗/
)
Constants
Defined Argument Constant Description
---------------------------------------------------------------------------
model PREFL_MODEL_NO_REFL Digital PHIGS performs no
reflectance calculation.
PREFL_MODEL_AMB_REFL Digital PHIGS produces
ambient reflectance
effects.
PREFL_MODEL_AMB_DIFF_REFL Digital PHIGS produces
ambient and diffuse
reflectance effects.
PREFL_MODEL_AMB_DIFF_SPEC_REFL Digital PHIGS produces
ambient, diffuse, and
specular reflectance
effects.
---------------------------------------------------------------------------
Description
pset_refl_model sets the reflectance model Digital PHIGS uses to display front-facing portions of area primitives. Depending on the current 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 reflectance model element.
During structure traversal, Digital PHIGS sets the current reflectance model entry in the PHIGS traversal state list to the value associated with the element. When the current reflectance model ASF entry in the traversal state list is INDIVIDUAL, Digital PHIGS uses this value to display front-facing portions of subsequent area primitives. If the specified reflectance model value is not available on a workstation, Digital PHIGS uses value 1.
If Digital PHIGS is in immediate mode, it performs this function immediately, but the function does not create a structure element.
See Also
pcell_array
pcell_array3
pcell_array3_plus
pfill_area
pfill_area3
pfill_area_set
pfill_area_set3
pfill_area_set_data
pfill_area_set3_data
pe_fill_area_set_wshape
pe_fill_area_set3_wshape
pe_fill_area_wshape
pe_fill_area3_wshape
pinq_int_facs_plus
pnon_uniform_b_spline_surf3
pquad_mesh3_data
pset_back_refl_model
pset_facet_disting_mode
pset_indiv_asf
pset_int_ind
pset_int_rep
pset_int_rep_plus
pset_of_fill_area_sets3_data
pset_refl_props
ptri_strip3_data