#ifndef GLOBALS_H #define GLOBALS_H #ifdef HAVE_CONFIG_H # include "config.h" #endif #if HAVE_STDINT_H # include #endif #ifdef HAVE_GL_GL_H # include #elif HAVE_OPENGL_GL_H # include #endif #include #include "events.h" #include "height_quantity.h" #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) typedef struct{ SDL_Surface *screen; int netcdfId; /* These are populated from the NetCDF file */ size_t number_of_points; size_t number_of_vertices; size_t number_of_volumes; size_t number_of_timesteps; Sint32 current_frame; uint8_t paused; float *x; float *y; int *volumes; /* Extents */ double minX; double maxX; double minY; double maxY; double diagonal; GLfloat eye[3]; GLfloat focus[3]; uint8_t keys[KEY_MAX]; struct height_quantity_simple *heights; } ANUGAVIS; extern ANUGAVIS anugavis; #endif