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

Last change on this file since 5316 was 5292, checked in by jack, 17 years ago

anugavis: Some basic camera control and frame stepping.

File size: 776 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
20typedef struct{
21  SDL_Surface *screen;
22  int netcdfId;
23  /* These are populated from the NetCDF file */
24  size_t number_of_points;
25  size_t number_of_vertices;
26  size_t number_of_volumes;
27  size_t number_of_timesteps;
28  size_t current_frame;
29  float *x;
30  float *y;
31  int *volumes;
32
33  GLfloat eye[3];
34  GLfloat focus[3];
35  uint8_t keys[KEY_MAX];
36
37  struct height_quantity_simple *heights;
38} ANUGAVIS;
39
40extern ANUGAVIS anugavis;
41
42#endif
Note: See TracBrowser for help on using the repository browser.