INQUIRE COLOUR MODEL(3P) — SUNPHIGS LIBRARY
NAME
INQUIRE COLOUR MODEL − inquire a workstation’s current colour model
SYNOPSIS
C Syntax
void
pinqcolourmodel ( ws, error_ind, model )
Pintws;workstation identifier
Pint∗error_ind;OUT error indicator
Pint∗model;OUT current colour model
FORTRAN Syntax
SUBROUTINE pqcmd ( WKID, ERRIND, CMODEL )
INTEGERWKIDworkstation identifier
INTEGERERRINDOUT error indicator
INTEGERCMODELOUT current colour model
Required PHIGS Operating States
(PHOP, WSOP, ∗, ∗)
DESCRIPTION
Purpose
Use INQUIRE COLOUR MODEL to determine the current colour model from a specified workstation’s state list.
C Input Parameters
wsThe workstation identifier of the workstation whose state list is queried.
C Output Parameters
error_ind
A pointer to the location to store the error number of any error detected by this function.
modelA pointer to a location in which the system returns the current colour model.
FORTRAN Input Parameters
WKIDThe workstation identifier of the workstation whose state list is queried.
FORTRAN Output Parameters
ERRIND
The error number of any error detected by this function.
CMODEL
The current colour model.
ERRORS
003Ignoring function, function requires state (PHOP, WSOP, ∗, ∗)
054Ignoring function, the specified workstation is not open
059Ignoring function, the specified workstation does not have output capability (i.e., the workstation category is neither OUTPUT, OUTIN, nor MO)
SEE ALSO
INQUIRE COLOUR MODEL FACILITIES (3P)
SET COLOUR MODEL (3P)
Sun Release 4.0 — Last change: 10 July 1989