Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ PEXSetReflectionAttributes(3) — Open3D 4.96

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PEXSetReflectionAttributes(3)  —  Subroutines

Name

PEXSetReflectionAttributes - Set Surface Reflection Attributes

Synopsis

void PEXSetReflectionAttributes(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 surface reflection attributes. 

Returns

None

Description

This function creates an output primitive attribute which sets the 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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026