Line | |
---|
1 | #ifndef ANUGAVIS_HH |
---|
2 | #define ANUGAVIS_HH |
---|
3 | |
---|
4 | /* The main controller object. */ |
---|
5 | |
---|
6 | #include <list> |
---|
7 | #include <string> |
---|
8 | #include <SDL.h> |
---|
9 | #include "height_quantity.hh" |
---|
10 | #include "sww_file.hh" |
---|
11 | |
---|
12 | using std::list; |
---|
13 | using std::string; |
---|
14 | |
---|
15 | class AnugaVis{ |
---|
16 | public: |
---|
17 | AnugaVis(const string &sww_file, int width, int height); |
---|
18 | ~AnugaVis(void); |
---|
19 | void add_HeightQuantity(HeightQuantity &height); |
---|
20 | void run(void); |
---|
21 | private: |
---|
22 | void init_SDL(int width, int height); |
---|
23 | void init_OpenGL(int width, int height); |
---|
24 | SDL_Surface *screen; |
---|
25 | SWWFile sww_file; |
---|
26 | list<HeightQuantity> heights; |
---|
27 | }; |
---|
28 | |
---|
29 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.