Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

INQUIRE COLOUR MODEL FACILITIES(3P)  —  Kubota Pacfic Computer Inc. (29 February 1991)

NAME

INQUIRE COLOUR MODEL FACILITIES − inquire list of workstation colour model facilities

SYNOPSIS

C Syntax

void
pinq_colr_model_facs ( type, length, start, error_ind, models, total_length, def )
Pinttype;workstation type
Pintlength;length of application list
Pintstart;starting position
Pint∗error_ind;OUT error indicator
Pint_list∗models;OUT list of colour models
Pint∗total_length;OUT length of list in PHIGS
Pint∗def;OUT default colour model

Required PHIGS Operating States

(PHOP, ∗, ∗, ∗)

DESCRIPTION

Purpose

Use INQUIRE COLOUR MODEL FACILITIES to obtain a list of the colour model facilities for the specified type of workstation from the workstation description table. 

C Input Parameters

typeGet the colour model facilities for this workstation type. 

lengthThe number of elements for which memory is allocated in the output parameter models.  Zero may be specified in order to get the total_length of the list. 

startStarting position in the list at which to begin the inquiry. 

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 which returns the portion of the list of available colour models from the workstation description table, starting with start.  Pint_list is defined in phigs.h as:

typedef struct {
Pint num_ints;/∗ number of integers ∗/
Pint∗ints;/∗ list of integers ∗/

} Pint_list; The pointer to the list of integers must be initialized to an array of length Pint elements. 

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. 

defA pointer to an integer in which to return the default colour model.  Possible colour models are as follows:

0PINDIRECT
1PMODEL_RGB
2PMODEL_CIELUV
3PMODEL_HSV
4PMODEL_HLS

ERRORS

002Ignoring function, function requires state (PHOP, ∗, ∗, ∗)

051Ignoring function, this information is not yet available for this workstation type; open a workstation of this type and use the specific workstation type

052Ignoring function, workstation type not recognized by the implementation

059Ignoring function, the specified workstation does not have output capability (that is, the workstation category is neither OUTPUT, OUTIN, nor MO)

062Ignoring function, this information is not available for this MO workstation type

SEE ALSO

SET COLOUR MODEL (3P)
INQUIRE COLOUR FACILITIES (3P)
PHIGS WORKSTATION DESCRIPTION TABLE (7P)

September 02, 1992

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