Sophie

Sophie

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

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


<HTML><HEAD><TITLE>Manpage of glutReportErrors</TITLE>
</HEAD><BODY>
<H1>glutReportErrors</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>

glutReportErrors - for debugging purposes; prints out OpenGL run-time errors.
<A NAME="lbAC">&nbsp;</A>
<H2>SYNTAX</H2>

<PRE>

void glutReportErrors(void);
</PRE><A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

This routine prints out any OpenGL run-time errors pending and clears
the errors.  This routine typically should only be used for debugging purposes
since calling it will slow OpenGL programs.  It is provided as a convenience;
all the routine does is call
<I>glGetError</I>

until no more errors are reported.  Any errors detected are reported
with a GLUT warning and the corresponding text message generated by
<I>gluErrorString.</I>


Calling glutReportErrors repeatedly in your program can help isolate
OpenGL errors to the offending OpenGL command.  Remember that you
can use the
<I>-gldebug</I>

option to detect OpenGL errors in any GLUT program.
<A NAME="lbAE">&nbsp;</A>
<H2>SEE ALSO</H2>

glutInit, glutCreateWindow, glutInitDisplayMode, gluErrorString, glGetError
<A NAME="lbAF">&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">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">SEE ALSO</A><DD>
<DT><A HREF="#lbAF">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>