Last change
on this file since 5600 was
5600,
checked in by jack, 15 years ago
|
More restructuring to use boost::shared_ptr.
|
File size:
692 bytes
|
Line | |
---|
1 | #ifndef ANUGAVIS_HH |
---|
2 | #define ANUGAVIS_HH |
---|
3 | |
---|
4 | /* The main controller object. */ |
---|
5 | |
---|
6 | #include <list> |
---|
7 | #include <string> |
---|
8 | #include <boost/shared_ptr.hpp> |
---|
9 | #include <SDL.h> |
---|
10 | #include "height_quantity.hh" |
---|
11 | #include "sww_file.hh" |
---|
12 | |
---|
13 | using boost::shared_ptr; |
---|
14 | using std::list; |
---|
15 | using std::string; |
---|
16 | |
---|
17 | class AnugaVis{ |
---|
18 | public: |
---|
19 | AnugaVis(const string &sww_file, int width, int height); |
---|
20 | ~AnugaVis(void); |
---|
21 | void add_HeightQuantity(shared_ptr<HeightQuantity> &height); |
---|
22 | void run(void); |
---|
23 | private: |
---|
24 | void init_SDL(int width, int height); |
---|
25 | void init_OpenGL(int width, int height); |
---|
26 | SDL_Surface *screen; |
---|
27 | shared_ptr<SWWFile> sww_file; |
---|
28 | list<shared_ptr<HeightQuantity> > heights; |
---|
29 | }; |
---|
30 | |
---|
31 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.