[ Previous | Next | Contents | Glossary | Home | Search ]
GL3.2 for AIX: Graphics Library (GL) Technical Reference

gRGBcolor Subroutine

Purpose

Gets the current RGB color values.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void gRGBcolor

(Int16 red, Int16 green, Int16 blue)

FORTRAN Syntax

SUBROUTINE GRGBCO(red, green, blue)

INTEGER*2 red, green, blue

Description

The gRGBcolor subroutine gets the current RGB color values and copies them into the parameters.

  1. This subroutine cannot be used to add to a display list.
  2. This subroutine is available in RGB mode. It will not function in color map mode.

Parameters

red Specifies the pointer to the location into which to copy the current red value.
green Specifies the pointer to the location into which to copy the current green value.
blue Specifies the pointer to the location into which to copy the current blue value.

Implementation Specifics

This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.

Files

/usr/include/gl/gl.h   Contains C language constant and variable type definitions for GL.

/usr/include/gl/fgl.h   Contains FORTRAN constant and variable type definitions for GL.

Related Information

Returning the current color with the getcolor subroutine.

Getting a copy of the RGB values for a color map entry with the getmcolor subroutine.

Setting the current color in RGB mode with the RGBcolor subroutine.

Setting a display mode that bypasses the color map with the RGBmode subroutine.

Understanding the Adapter, Working in Color Map and RGB Modes, Setting Drawing Attributes, and Querying the System.


[ Previous | Next | Contents | Glossary | Home | Search ]