GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


Manpage of GLCOLOR

GLCOLOR

Index
 

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 f3glColor3bfP( GLbyte fIredfP,
   GLdouble fIgreenfP,
   GLdouble fIbluefP )
void f3glColor3ffP( GLfloat fIredfP,
   GLint fIgreenfP,
   GLint fIbluefP )
void f3glColor3sfP( GLshort fIredfP,
   GLubyte fIgreenfP,
   GLubyte fIbluefP )
void f3glColor3uifP( GLuint fIredfP,
   GLushort fIgreenfP,
   GLushort fIbluefP )
void f3glColor4bfP( GLbyte fIredfP,
   GLdouble fIgreenfP,
   GLdouble fIbluefP,
   GLdouble fIalphafP )
void f3glColor4ffP( GLfloat fIredfP,
   GLint fIgreenfP,
   GLint fIbluefP,
   GLint fIalphafP )
void f3glColor4sfP( GLshort fIredfP,
   GLubyte fIgreenfP,
   GLubyte fIbluefP,
   GLubyte fIalphafP )
void f3glColor4uifP( GLuint fIredfP,
   GLushort fIgreenfP,
   GLushort fIbluefP,
   GLushort fIalphafP )

delim $$  

PARAMETERS

f2redfP, f2greenfP, f2bluefP
Specify new red, green, and blue values for the current color.
f2alphafP
Specifies a new alpha value for the current color. Included only in the four-argument %f3glColor4fP commands.
 

C SPECIFICATION

void f3glColor3bvfP( const GLbyte fI*vfP )


void f3glColor3dvfP(
const GLdouble fI*vfP )


void f3glColor3fvfP(
const GLfloat fI*vfP )


void f3glColor3ivfP(
const GLint fI*vfP )


void f3glColor3svfP(
const GLshort fI*vfP )


void f3glColor3ubvfP(
const GLubyte fI*vfP )


void f3glColor3uivfP(
const GLuint fI*vfP )


void f3glColor3usvfP(
const GLushort fI*vfP )


void f3glColor4bvfP(
const GLbyte fI*vfP )


void f3glColor4dvfP(
const GLdouble fI*vfP )


void f3glColor4fvfP(
const GLfloat fI*vfP )


void f3glColor4ivfP(
const GLint fI*vfP )


void f3glColor4svfP(
const GLshort fI*vfP )


void f3glColor4ubvfP(
const GLubyte fI*vfP )


void f3glColor4uivfP(
const GLuint fI*vfP )


void f3glColor4usvfP(
const GLushort fI*vfP )


 

PARAMETERS

f2vfP
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. %f3glColorfP sets a new four-valued RGBA color. %f3glColorfP has two major variants: %f3glColor3fP and %f3glColor4fP. %f3glColor3fP variants specify new red, green, and blue values explicitly and set the current alpha value to 1.0 (full intensity) implicitly. %f3glColor4fP variants specify all four color components explicitly. %f3glColor3bfP, %f3glColor4bfP, %f3glColor3sfP, %f3glColor4sfP, %f3glColor3ifP, and %f3glColor4ifP take three or four signed byte, short, or long integers as arguments. When f3vfP 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, %f3glColorfP can be called between a call to %f3glBeginfP and the corresponding call to %f3glEndfP.  

ASSOCIATED GETS

%f3glGetfP with argument %f3GL_CURRENT_COLORfP
%f3glGetfP with argument %f3GL_RGBA_MODEfP  

SEE ALSO

%f3glIndex(3G)fP


 

Index

NAME
C SPECIFICATION
PARAMETERS
C SPECIFICATION
PARAMETERS
DESCRIPTION
NOTES
ASSOCIATED GETS
SEE ALSO