GLCOLOR
NAMEC SPECIFICATION
PARAMETERS
C SPECIFICATION
PARAMETERS
DESCRIPTION
NOTES
ASSOCIATED GETS
SEE ALSO
NAME
glColor3b, glColor3d, glColor3f, glColor3i, glColor3s, glColor3ub, glColor3ui, glColor3us, glColor4b, glColor4d, glColor4f, glColor4i, glColor4s, glColor4ub, glColor4ui, glColor4us, glColor3bv, glColor3dv, glColor3fv, glColor3iv, glColor3sv, glColor3ubv, glColor3uiv, glColor3usv, glColor4bv, glColor4dv, glColor4fv, glColor4iv, glColor4sv, glColor4ubv, glColor4uiv, glColor4usv − set the current color
C SPECIFICATION
void glColor3b( GLbyte red,
GLbyte green, | |
GLbyte blue ) |
void glColor3d( GLdouble red,
GLdouble green, | |
GLdouble blue ) |
void glColor3f( GLfloat red,
GLfloat green, | |
GLfloat blue ) |
void glColor3i( GLint red,
GLint green, | |
GLint blue ) |
void glColor3s( GLshort red,
GLshort green, | |
GLshort blue ) |
void glColor3ub( GLubyte red,
GLubyte green, | |
GLubyte blue ) |
void glColor3ui( GLuint red,
GLuint green, | |
GLuint blue ) |
void glColor3us( GLushort red,
GLushort green, | |
GLushort blue ) |
void glColor4b( GLbyte red,
GLbyte green, | |
GLbyte blue, | |
GLbyte alpha ) |
void glColor4d( GLdouble red,
GLdouble green, | |
GLdouble blue, | |
GLdouble alpha ) |
void glColor4f( GLfloat red,
GLfloat green, | |
GLfloat blue, | |
GLfloat alpha ) |
void glColor4i( GLint red,
GLint green, | |
GLint blue, | |
GLint alpha ) |
void glColor4s( GLshort red,
GLshort green, | |
GLshort blue, | |
GLshort alpha ) |
void glColor4ub( GLubyte red,
GLubyte green, | |
GLubyte blue, | |
GLubyte alpha ) |
void glColor4ui( GLuint red,
GLuint green, | |
GLuint blue, | |
GLuint alpha ) |
void glColor4us( GLushort red,
GLushort green, | |
GLushort blue, | |
GLushort alpha ) |
PARAMETERS
red, green, blue
Specify new red, green, and blue values for the current color.
alpha |
Specifies a new alpha value for the current color. Included only in the four-argument glColor4 commands. |
C SPECIFICATION
void
glColor3bv( const GLbyte *v )
void glColor3dv( const GLdouble *v )
void glColor3fv( const GLfloat *v )
void glColor3iv( const GLint *v )
void glColor3sv( const GLshort *v )
void glColor3ubv( const GLubyte *v )
void glColor3uiv( const GLuint *v )
void glColor3usv( const GLushort *v )
void glColor4bv( const GLbyte *v )
void glColor4dv( const GLdouble *v )
void glColor4fv( const GLfloat *v )
void glColor4iv( const GLint *v )
void glColor4sv( const GLshort *v )
void glColor4ubv( const GLubyte *v )
void glColor4uiv( const GLuint *v )
void glColor4usv( const GLushort *v )
PARAMETERS
v |
Specifies a pointer to an array that contains red, green, blue, and (sometimes) alpha values. |
DESCRIPTION
The GL stores both a current single-valued color index and a current four-valued RGBA color. glColor sets a new four-valued RGBA color. glColor has two major variants: glColor3 and glColor4. glColor3 variants specify new red, green, and blue values explicitly and set the current alpha value to 1.0 (full intensity) implicitly. glColor4 variants specify all four color components explicitly.
glColor3b, glColor4b, glColor3s, glColor4s, glColor3i, and glColor4i take three or four signed byte, short, or long integers as arguments. When v is appended to the name, the color commands can take a pointer to an array of such values.
Current color values are stored in floating-point , with unspecified mantissa and exponent sizes. Unsigned integer color components, when specified, are linearly mapped to floating-point values such that the largest representable value maps to 1.0 (full intensity), and 0 maps to 0.0 (zero intensity). Signed integer color components, when specified, are linearly mapped to floating-point values such that the most positive representable value maps to 1.0, and the most negative representable value maps to −1.0. (Note that this mapping does not convert 0 precisely to 0.0.) Floating-point values are mapped directly.
Neither floating-point nor signed integer values are clamped to the range [0,1] before the current color is updated. However, color components are clamped to this range before they are interpolated or written into a color buffer.
NOTES
The initial value for the current color is (1, 1, 1, 1).
The current color can be updated at any time. In particular, glColor can be called between a call to glBegin and the corresponding call to glEnd.
ASSOCIATED GETS
glGet
with argument GL_CURRENT_COLOR
glGet with argument GL_RGBA_MODE
SEE ALSO
glIndex(3G)
More Linux Commands
manpages/scsi_id.8.html
scsi_id(8) - retrieve and generate a unique SCSI identifier
scsi_id queries a SCSI device via the SCSI INQUIRY vital product data (VPD) page 0x80 or 0x83 and uses the resulting data to generate a value that is unique acr
manpages/XCopyGC.3.html
XCopyGC(3) - create or free graphics contexts and graphics c
The XCreateGC function creates a graphics context and returns a GC. The GC can be used with any destination drawable having the same root and depth as the speci
manpages/DPMSForceLevel.3.html
DPMSForceLevel(3) - forces a DPMS capable display into the s
The DPMSForceLevel function forces a DPMS capable display into the specified power level. The level must be one of following four states: DPMSModeOn, DPMSModeSt
manpages/gnutls_x509_privkey_generate.3.html
gnutls_x509_privkey_generate(3) - API function (Man Page)...
This function will generate a random private key. Note that this function must be called on an empty private key. Do not set the number of bits directly, use gn
manpages/ttk_progressbar.n.html
ttk_progressbar(n) Provide progress feedback (Man Page).....
A ttk::progressbar widget shows the status of a long-running operation. They can operate in two modes: determinate mode shows the amount completed relative to t
manpages/dosfsck.8.html
dosfsck(8) - check and repair MS-DOS filesystems (Man Page)
fsck.fat verifies the consistency of MS-DOS filesystems and optionally tries to repair them. The following filesystem problems can be corrected (in this order):
manpages/Mail::SpamAssassin::Plugin::URIDNSBL.3pm.html
Mail::SpamAssassin::Plugin::URIDNSBL(3pm) - look up URLs aga
This works by analysing message text and HTML for URLs, extracting the domain names from those, querying their NS records in DNS , resolving the hostnames used
manpages/box_set.3ncurses.html
box_set(3ncurses) - create curses borders or lines using com
The border_set and wborder_set functions draw a border around the edges of the current or specified window. These functions do not change the cursor position, a
manpages/inet.3.html
inet(3) - Internet address manipulation routines (Man Page)
inet_aton() converts the Internet host address cp from the IPv4 numbers-and-dots notation into binary form (in network byte order) and stores it in the structur
manpages/XListDeviceProperties.3.html
XListDeviceProperties(3) - List a device's properties.......
The XListDeviceProperties function returns a list of the properties associated with the input device specified in device. Each device may have an arbitrary numb
manpages/destroy.n.html
destroy(n) - Destroy one or more windows - Linux man page...
This command deletes the windows given by the window arguments, plus all of their descendants. If a window . is deleted then all windows will be destroyed and t
manpages/gnutls_certificate_get_ours.3.html
gnutls_certificate_get_ours(3) - API function (Man Page)....
Gets the certificate as sent to the peer in the last handshake. The certificate is in raw (DER) format. No certificate list is being returned. Only the first ce
