Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > eee00533ac83fd7ebbf9846dc6d3b77b > files > 281

Io-language-graphics-and-sound-20080330-6.fc15.i686.rpm


<HTML><HEAD><TITLE>Manpage of glutSetColor</TITLE>
</HEAD><BODY>
<H1>glutSetColor</H1>
Section: GLUT (3GLUT)<BR>Updated: 3.7<BR><A HREF="#index">Index</A>
<A HREF="">Return to Main Contents</A><HR>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

glutSetColor - sets the color of a colormap entry in the layer of use
for the current window. 
<A NAME="lbAC">&nbsp;</A>
<H2>SYNTAX</H2>

<PRE>

void glutSetColor(int cell,
                  GLfloat red, GLfloat green, GLfloat blue);
</PRE>

<A NAME="lbAD">&nbsp;</A>
<H2>ARGUMENTS</H2>

<DL COMPACT>
<DT><I>cell</I><DD>
Color cell index (starting at zero). 
<DT><I>red</I><DD>
Red intensity (clamped between 0.0 and 1.0 inclusive). 
<DT><I>green</I><DD>
Green intensity (clamped between 0.0 and 1.0 inclusive).
<DT><I>blue</I><DD>
Blue intensity (clamped between 0.0 and 1.0 inclusive). 
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>DESCRIPTION</H2>

Sets the cell color index colormap entry of the current window's
logical colormap for the layer in use with the color specified by red,
green, and blue.  The layer in use of the current window should be a
color index window.  cell should be zero or greater and less than the
total number of colormap entries for the window.  If the layer in use's
colormap was copied by reference, a glutSetColor call will force the
duplication of the colormap.  Do not attempt to set the color of an
overlay's transparent index. 
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>

glutGetColor, glutCopyColormap, glutInitDisplayMode
<A NAME="lbAG">&nbsp;</A>
<H2>AUTHOR</H2>

Mark J. Kilgard (<A HREF="mailto:mjk@nvidia.com">mjk@nvidia.com</A>)
<P>

<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNTAX</A><DD>
<DT><A HREF="#lbAD">ARGUMENTS</A><DD>
<DT><A HREF="#lbAE">DESCRIPTION</A><DD>
<DT><A HREF="#lbAF">SEE ALSO</A><DD>
<DT><A HREF="#lbAG">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="">man2html</A>,
using the manual pages.<BR>
Time: 19:05:09 GMT, September 15, 2003
</BODY>
</HTML>