GPRMO (model) |
Purpose
Use GPRMO to insert a Set Reflectance Model structure element into the open structure following the element pointer, or to replace the element pointed at by the element pointer with a Set Reflectance Model structure element, depending on the current edit mode.
This element specifies the lighting reflectance model that the graPHIGS API uses when performing lighting calculations on subsequent area primitives. If the face distinguish mode (GPFDMO) is 1=NONE , then the graPHIGS API uses the specified model to calculate the lighting effects on both front and back facing portions of area primitives. If the face distinguish mode is 2=COLOR_SURFACE_PROPERTIES , then the graPHIGS API uses the specified model to calculate the lighting effects on only front facing portions of area primitives.
The defined reflectance models and their effect are as follows:
For compatibility, the Set Reflectance Model traversal state is also set by the Set Lighting Calculation Mode (GPLMO) subroutine. For more information, see The graPHIGS Programming Interface: Understanding Concepts
The traversal default for the reflectance model is 1=REFLECTANCE_NONE If the workstation does not support the specified method, then the graPHIGS API uses 1=REFLECTANCE_NONE
Parameters
Error Codes
Related Subroutines
RCP code
201343509 (X'0C004215')