Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

glut_util.c File Reference

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <GL/glut.h>
#include "glutint.h"

Go to the source code of this file.


Functions

void __glutWarning (char *format,...)
void __glutFatalError (char *format,...)
void __glutFatalUsage (char *format,...)

Function Documentation

void __glutFatalError char *    format,
...   
 

Definition at line 29 of file glut_util.c.

References args, and format.

Referenced by __glutCreateWindow(), __glutDefaultDisplay(), __glutEstablishColormapsProperty(), __glutOpenXConnection(), __glutSetupColormap(), addStaleWindow(), associateNewColormap(), getUnusedMenuSlot(), getUnusedWindowSlot(), glutAddMenuEntry(), glutAddSubMenu(), glutCreateMenu(), glutDisplayFunc(), glutEstablishOverlay(), glutInit(), glutTimerFunc(), initQuadObj(), makeBlankCursor(), menuModificationError(), menuSetup(), setMenuItem(), and waitForSomething().

00030 {
00031   va_list args;
00032 
00033   va_start(args, format);
00034   fprintf(stderr, "GLUT: Fatal Error in %s: ",
00035     __glutProgramName ? __glutProgramName : "(unamed)");
00036   vfprintf(stderr, format, args);
00037   va_end(args);
00038   putc('\n', stderr);
00039   exit(1);
00040 }

void __glutFatalUsage char *    format,
...   
 

Definition at line 43 of file glut_util.c.

References args, and format.

Referenced by glutDestroyWindow(), and glutMainLoop().

00044 {
00045   va_list args;
00046 
00047   va_start(args, format);
00048   fprintf(stderr, "GLUT: Fatal API Usage in %s: ",
00049     __glutProgramName ? __glutProgramName : "(unamed)");
00050   vfprintf(stderr, format, args);
00051   va_end(args);
00052   putc('\n', stderr);
00053   abort();
00054 }

void __glutWarning char *    format,
...   
 

Definition at line 16 of file glut_util.c.

References args, and format.

Referenced by __glutDefaultDisplay(), __glutEstablishColormapsProperty(), getOverlayVisualInfoRGB(), glutChangeToMenuEntry(), glutChangeToSubMenu(), glutCopyColormap(), glutDeviceGet(), glutFullScreen(), glutGet(), glutGetColor(), glutGetModifiers(), glutHideOverlay(), glutInit(), glutLayerGet(), glutOverlayDisplayFunc(), glutRemoveMenuItem(), glutReshapeWindow(), glutSetColor(), glutSetMenu(), glutSetWindow(), glutShowOverlay(), glutUseLayer(), menuModificationError(), normalize(), and processWindowWorkList().

00017 {
00018   va_list args;
00019 
00020   va_start(args, format);
00021   fprintf(stderr, "GLUT: Warning in %s: ",
00022     __glutProgramName ? __glutProgramName : "(unamed)");
00023   vfprintf(stderr, format, args);
00024   va_end(args);
00025   putc('\n', stderr);
00026 }
 

Powered by Plone

This site conforms to the following standards: