Line | |
---|
1 | #ifndef ANUGAVIS_ERROR_H |
---|
2 | #define ANUGAVIS_ERROR_H |
---|
3 | |
---|
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 | |
---|
14 | /* Set the error message with a printf-style format string. |
---|
15 | */ |
---|
16 | extern void AnugaVis_SetError(const char *format, ...); |
---|
17 | /* Report a SDL error. |
---|
18 | */ |
---|
19 | extern void AnugaVis_SDLError(void); |
---|
20 | /* Report a NetCDF error. |
---|
21 | */ |
---|
22 | extern void AnugaVis_NetCDFError(int ncerr); |
---|
23 | /* Report an OpenGL error. |
---|
24 | */ |
---|
25 | extern void AnugaVis_OpenGLError(GLenum errorCode); |
---|
26 | |
---|
27 | /* Get detailed error information. The returned string should not be |
---|
28 | * freed by the caller. |
---|
29 | */ |
---|
30 | extern char* AnugaVis_GetError(void); |
---|
31 | |
---|
32 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.