pinq_int_rep_plus(3g) — Subroutines
Name
pinq_int_rep_plus − Returns information on the extended interior representation.
Operating States: PHOP, WSOP, ∗, ∗
PHIGS PLUS function
Syntax
void pinq_int_rep_plus (
Pint wsid, /∗ (I) Workstation identifier ∗/
Pint index, /∗ (I) Interior index ∗/
Pinq_type return_type, /∗ (I) Type of returned values ∗/
Pint ∗error_ind, /∗ (O) Error indicator ∗/
Pint_bundle_plus ∗rep /∗ (O) Extended interior
representation ∗/
)
Data Structures
typedef enum {
PINQ_SET, /∗ Use the exact state list values. ∗/
PINQ_REALIZED /∗ Use the values approximated by the graphics
handler. ∗/
} Pinq_type;
typedef struct {
Pint_style style; /∗ interior style ∗/
Pint style_ind; /∗ interior style index ∗/
Pgcolr colr; /∗ interior color ∗/
Pint shad_method; /∗ shading method ∗/
} Pint_bundle_plus;
typedef enum {
PSTYLE_HOLLOW, /∗ hollow interior ∗/
PSTYLE_SOLID, /∗ solid interior ∗/
PSTYLE_PAT, /∗ patterned interior ∗/
PSTYLE_HATCH, /∗ hatched interior ∗/
PSTYLE_EMPTY /∗ empty interior ∗/
} Pint_style;
typedef struct {
Pint colr_type; /∗ color type ∗/
Pcolrv colr_value; /∗ color value ∗/
} Pgcolr;
typedef union {
Pint colr_ind; /∗ color index ∗/
Pcolr_rep colr_rep; /∗ color representation ∗/
} Pcolrv;
typedef union {
Prgb rgb; /∗ red, green, and blue color
specification ∗/
Pcieluv cieluv; /∗ CIELUV color specification ∗/
Phls hls; /∗ hue, lightness, and saturation
color specification ∗/
Phsv hsv; /∗ hue, saturation, and value color
specification ∗/
Pdata unsupp; /∗ color in an unsupported color
model ∗/
int impl_dep; /∗ implementation-defined ∗/
} Pcolr_rep;
typedef struct {
Pfloat red; /∗ red intensity ∗/
Pfloat green; /∗ green intensity ∗/
Pfloat blue; /∗ blue intensity ∗/
} Prgb;
typedef struct {
Pfloat cieluv_x; /∗ x coefficient ∗/
Pfloat cieluv_y; /∗ y coefficient ∗/
Pfloat cieluv_y_lum; /∗ y luminance ∗/
} Pcieluv;
typedef struct {
Pfloat hue; /∗ hue ∗/
Pfloat lightness; /∗ lightness ∗/
Pfloat satur; /∗ saturation ∗/
} Phls;
typedef struct {
Pfloat hue; /∗ hue ∗/
Pfloat satur; /∗ saturation ∗/
Pfloat value; /∗ value ∗/
} Phsv;
typedef struct {
size_t size; /∗ size of data ∗/
void ∗data; /∗ pointer to the data ∗/
} Pdata;
Constants
Data Structure Constant Description
Constants
---------------------------------------------------------------------------
Color types PCOLR_INDIRECT Indirect (indexed) color
PCOLR_RGB Direct specification of
red, green, and blue
PCOLR_CIELUV Direct specification in the
format of the Commission
Internationale de
l’Eclairage
PCOLR_HSV Direct specification of
hue, saturation, and value
PCOLR_HLS Direct specification of
hue, lightness, and
saturation
Shading methods PINT_SHAD_METHOD_ No interpolation, constant
NONE shading
PINT_SHAD_METHOD_ Linear interpolation of
COLR color
PINT_SHAD_METHOD_ Interpolation of color for
DATA the WITH DATA primitives
PINT_SHAD_METHOD_ Interpolation of color
DATA_DOT based on dot products
PINT_SHAD_METHOD_ Interpolation of color
DATA_NORM based on normals
---------------------------------------------------------------------------
Description
pinq_int_rep_plus returns information on the extended interior representation, including the front and back interior style indexes, the front and back colors, the front and back shading methods, the front and back lighting methods, and the front and back reflectance coefficients.
See Also
pinq_int_rep
pinq_pred_int_rep_plus
pinq_param_surf_rep
pset_int_ind
pset_int_rep_plus