INQUIRE RENDERING COLOUR MODEL FACILITIES(3P+) — Kubota Pacfic Computer Inc. (29 February 1991)
NAME
INQUIRE RENDERING COLOUR MODEL FACILITIES − inquire list of available direct colour models
SYNOPSIS
C Syntax
void
pinq_rendering_colr_model_facs( type, length, start, error_ind, models, total_length )
Pinttype;workstation type
Pintlength;length of application’s list
Pintstart;starting position
Pint∗error_ind;OUT error indicator
Pint_list∗models;OUT rendering colour models
Pint∗total_length;OUT total number of rendering
Required PHIGS Operating States
(PHOP, ∗, ∗, ∗)
DESCRIPTION
Purpose
Use INQUIRE RENDERING COLOUR MODEL FACILITIES to obtain a list of colour model facilities available for rendering for the specified workstation type
C Input Parameters
typeThe workstation type.
lengthThe number of ints in the models output parameter for which the application has allocated memory. length is the number of list elements that the system can return in models→ints. If a value of 0 is used here, no data will be returned in the models→ints list, but the total number of elements will be returned in total_length.
startStarting position of inquiry. The elements in the list, beginning with the item number specified by start, are copied sequentially into models→ints until models→ints is full or all the elements have been copied.
C Output Parameters
error_ind
A pointer to the location to store the error number of any error detected by this function.
modelsA pointer to a Pint_list that returns the portion of the list of available rendering colour models from the workstation description table, starting with start. Pint_list is defined in phigs.h as follows:
typedef struct {
Pintnum_ints;/∗ number of Pints in list ∗/
Pint∗ints;/∗ list of integers ∗/
} Pint_list;
The num_ints component specifies the number of elements in the list. The ints component is a pointer to a list num_ints long.
The application must allocate memory for length elements in the list of ints.
total_length
A pointer to an integer in which to return the total length of the list. This is the value required for length if all the items in the list are to be returned.
Execution
If the inquired information is available, the error indicator is returned as zero and values are returned in the output parameters.
If the inquired information is not available, the values returned in the output parameters are undefined and the error indicator is set to one of the below error numbers to indicate the reason for nonavailability.
Since this is an inquiry function, ERROR HANDLING is not invoked when an error is detected by this function.
ERRORS
002Ignoring function, function requires state (PHOP, ∗, ∗, ∗)
052Ignoring function, workstation type not recognized by the implementation
059Ignoring function, the specified workstation does not have output capability (i.e., the workstation category is neither OUTPUT, OUTIN, nor MO)
062Ignoring function, specified workstation category is neither OUTPUT nor OUTIN
-153List length is less that zero − zero will be used
2201Start index out of range
SEE ALSO
SET RENDERING COLOUR MODEL (3P+)
September 02, 1992