source: anuga_work/development/anugavis/src/globals.h @ 5488

Last change on this file since 5488 was 5384, checked in by jack, 16 years ago

Tracking, Strafing and Zooming are all scaled by domain size.

File size: 986 bytes
Line 
1#ifndef GLOBALS_H
2#define GLOBALS_H
3
4#ifdef HAVE_CONFIG_H
5#  include "config.h"
6#endif
7
8#if HAVE_STDINT_H
9#  include <stdint.h>
10#endif
11#ifdef HAVE_GL_GL_H
12#  include <GL/gl.h>
13#elif HAVE_OPENGL_GL_H
14#  include <OpenGL/gl.h>
15#endif
16#include <SDL.h>
17#include "events.h"
18#include "height_quantity.h"
19
20#define MIN(a, b) ((a) < (b) ? (a) : (b))
21#define MAX(a, b) ((a) > (b) ? (a) : (b))
22
23typedef struct{
24  SDL_Surface *screen;
25  int netcdfId;
26  /* These are populated from the NetCDF file */
27  size_t number_of_points;
28  size_t number_of_vertices;
29  size_t number_of_volumes;
30  size_t number_of_timesteps;
31  Sint32 current_frame;
32  uint8_t paused;
33  float *x;
34  float *y;
35  int *volumes;
36
37  /* Extents */
38  double minX;
39  double maxX;
40  double minY;
41  double maxY;
42  double diagonal;
43
44  GLfloat eye[3];
45  GLfloat focus[3];
46  uint8_t keys[KEY_MAX];
47
48  struct height_quantity_simple *heights;
49} ANUGAVIS;
50
51extern ANUGAVIS anugavis;
52
53#endif
Note: See TracBrowser for help on using the repository browser.