Rev | Line | |
---|
[5217] | 1 | #ifndef ANUGAVIS_ERROR_H |
---|
| 2 | #define ANUGAVIS_ERROR_H |
---|
| 3 | |
---|
[5267] | 4 | #ifdef HAVE_CONFIG_H |
---|
| 5 | # include "config.h" |
---|
| 6 | #endif |
---|
| 7 | |
---|
| 8 | #ifdef HAVE_GL_GL_H |
---|
| 9 | # include <GL/gl.h> |
---|
| 10 | #elif HAVE_OPENGL_GL_H |
---|
| 11 | # include <OpenGL/gl.h> |
---|
| 12 | #endif |
---|
| 13 | |
---|
[5217] | 14 | /* Set the error message with a printf-style format string. |
---|
| 15 | */ |
---|
[5271] | 16 | extern void AnugaVis_SetError(const char *format, ...); |
---|
[5217] | 17 | /* Report a SDL error. |
---|
| 18 | */ |
---|
[5271] | 19 | extern void AnugaVis_SDLError(void); |
---|
[5228] | 20 | /* Report a NetCDF error. |
---|
| 21 | */ |
---|
[5271] | 22 | extern void AnugaVis_NetCDFError(int ncerr); |
---|
[5267] | 23 | /* Report an OpenGL error. |
---|
| 24 | */ |
---|
[5271] | 25 | extern void AnugaVis_OpenGLError(GLenum errorCode); |
---|
[5228] | 26 | |
---|
[5259] | 27 | /* Get detailed error information. The returned string should not be |
---|
| 28 | * freed by the caller. |
---|
| 29 | */ |
---|
| 30 | extern char* AnugaVis_GetError(void); |
---|
| 31 | |
---|
[5217] | 32 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.