Line | |
---|
1 | #ifndef HEIGHT_QUANTITY_HH |
---|
2 | #define HEIGHT_QUANTITY_HH |
---|
3 | |
---|
4 | /* An individual height quantity to render. */ |
---|
5 | |
---|
6 | #ifdef HAVE_CONFIG_H |
---|
7 | # include "config.h" |
---|
8 | #endif |
---|
9 | |
---|
10 | #include <string> |
---|
11 | |
---|
12 | #ifdef HAVE_GL_GL_H |
---|
13 | # include <GL/gl.h> |
---|
14 | #elif HAVE_OPENGL_GL_H |
---|
15 | # include <OpenGL/gl.h> |
---|
16 | #endif |
---|
17 | #include "sww_file.hh" |
---|
18 | |
---|
19 | using std::string; |
---|
20 | |
---|
21 | class HeightQuantity { |
---|
22 | public: |
---|
23 | HeightQuantity(const SWWFile &sww, const string &name, |
---|
24 | const GLdouble offset, GLdouble scale, |
---|
25 | GLfloat red, GLfloat green, GLfloat blue); |
---|
26 | ~HeightQuantity(void); |
---|
27 | void draw(int frame); |
---|
28 | GLdouble offset; |
---|
29 | GLdouble scale; |
---|
30 | GLfloat red; |
---|
31 | GLfloat green; |
---|
32 | GLfloat blue; |
---|
33 | private: |
---|
34 | void compile(int frame); |
---|
35 | string name; |
---|
36 | int frame_number; /* The most recently drawn frame (i.e., the one |
---|
37 | cached in the display list. */ |
---|
38 | bool dynamic; |
---|
39 | GLuint display_list; |
---|
40 | const SWWFile &sww; |
---|
41 | }; |
---|
42 | |
---|
43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.