Ignore:
Timestamp:
May 2, 2008, 12:13:55 PM (16 years ago)
Author:
jack
Message:

AnugaVis?: compile the data into openGL display lists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/anugavis/src/error.c

    r5260 r5267  
     1#ifdef HAVE_CONFIG_H
     2#  include "config.h"
     3#endif
     4
     5#ifdef HAVE_GL_GLU_H
     6#  include <GL/glu.h>
     7#elif HAVE_OPENGL_GLU_H
     8#  include <OpenGL/glu.h>
     9#endif
    110#include <stdarg.h>
    211#include <netcdf.h>
     
    413#include "error.h"
    514
    6 #define MAX_ERROR_LEN 100
     15#define MAX_ERROR_LEN 200
    716
    817static char error[MAX_ERROR_LEN];
     
    2736  AnugaVis_SetError("NetCDF Error: %s", nc_strerror(ncerr));
    2837}
     38
     39void AnugaVis_OpenGLError(GLenum errorCode){
     40  AnugaVis_SetError("OpenGL Error: %s", gluErrorString(errorCode));
     41}
Note: See TracChangeset for help on using the changeset viewer.