pinq_pred_int_rep_plus(3g) — Subroutines
Name
pinq_pred_int_rep_plus − Returns information about the extended interior representation.
Operating States: PHOP, ∗, ∗, ∗
PHIGS PLUS function
Syntax
void pinq_pred_int_rep_plus (
Pint wstype, /∗ (I) Workstation type ∗/
Pint index, /∗ (I) Predefined interior index ∗/
Pint ∗error_ind, /∗ (O) Error indicator ∗/
Pint_bundle_plus ∗rep /∗ (O) Extended interior
representation ∗/
)
Data Structures
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 Constants Constant Description
---------------------------------------------------------------------------
Color types PCOLR_INDIRECT Indirect (indexed)
color
PCOLR_RGB Direct specifica-
tion of red,
green, and blue
PCOLR_CIELUV Direct specifica-
tion in the format
of the Commission
Internationale de
l’Eclairage
PCOLR_HSV Direct specifica-
tion of hue,
saturation, and
value
PCOLR_HLS Direct specifica-
tion of hue,
lightness, and
saturation
Shading methods PINT_SHAD_METHOD_NONE No interpolation,
constant shading
PINT_SHAD_METHOD_COLR Linear interpola-
tion of color
PINT_SHAD_METHOD_DATA Interpolation of
color for the WITH
DATA primitives
PINT_SHAD_METHOD_DATA_DOT Interpolation of
color based on dot
products
PINT_SHAD_METHOD_DATA_NORM Interpolation of
color based on
normals
---------------------------------------------------------------------------
Description
pinq_pred_int_rep_plus returns values for the following:
•Interior style
•Interior style index
•Color index
•Lighting method
•Shading method
See Also
pinq_int_facs
pinq_int_facs_plus
pinq_int_rep
pinq_int_rep_plus
pinq_pred_int_rep
pset_int_ind
pset_int_rep
pset_int_rep_plus