PEXSetBFReflectionAttributes(3) — Subroutines
Name
PEXSetBFReflectionAttributes - Set Back-Face Surface Reflection Attributes
Synopsis
void PEXSetBFReflectionAttributes(Display ∗display, XID resource_id, PEXOCRequestType req_type, PEXReflectionAttributes ∗attributes)
Arguments
displayA pointer to a display structure returned by a successful XOpenDisplay call.
resource_idThe resource identifier of the renderer or structure.
req_typeThe request type for the output command (PEXOCRender, PEXOCStore, PEXOCRenderSingle or PEXOCStoreSingle).
attributesThe back-facing surface reflection attributes.
Returns
None
Description
This function creates an output primitive attribute which sets the back-facing surface reflection attributes. Surface reflection attributes consist of the ambient, diffuse and specular coefficients, the specular concentration and color, and the transmission coefficient.
Data Structures
typedef struct {
float ambient;
float diffuse;
float specular;
float specular_conc;
float transmission;
PEXColorSpecifier specular_color;
} PEXReflectionAttributes;
See also the PEXStructuresman page.
Errors
BadPEXRenderer
The specified renderer resource identifier is invalid.
BadPEXStructure
The specified structure resource identifier is invalid.
See Also
PEXSetIndividualASF, PEXGetImpDepConstants