Rev | Line | |
---|
[5220] | 1 | #ifndef HEIGHT_QUANTITY_H |
---|
| 2 | #define HEIGHT_QUANTITY_H |
---|
| 3 | |
---|
[5267] | 4 | #ifdef HAVE_CONFIG_H |
---|
| 5 | # include "config.h" |
---|
| 6 | #endif |
---|
| 7 | |
---|
[5271] | 8 | #if HAVE_STDINT_H |
---|
| 9 | # include <stdint.h> |
---|
| 10 | #endif |
---|
[5267] | 11 | #ifdef HAVE_GL_GL_H |
---|
| 12 | # include <GL/gl.h> |
---|
| 13 | #elif HAVE_OPENGL_GL_H |
---|
| 14 | # include <OpenGL/gl.h> |
---|
| 15 | #endif |
---|
[5271] | 16 | struct height_quantity_simple { |
---|
[5220] | 17 | char *name; |
---|
[5267] | 18 | uint8_t frames; |
---|
[5220] | 19 | double offset; |
---|
| 20 | double scale; |
---|
[5271] | 21 | GLfloat red; |
---|
| 22 | GLfloat green; |
---|
| 23 | GLfloat blue; |
---|
[5267] | 24 | GLuint displayLists; |
---|
[5220] | 25 | struct height_quantity_simple *next; |
---|
| 26 | }; |
---|
| 27 | |
---|
[5259] | 28 | /* Define (or redefine if already defined a simple height quantity with the |
---|
| 29 | * given offset, scale, and color. Returns 0 on success, -1 on error. |
---|
| 30 | */ |
---|
| 31 | extern int AnugaVis_DefineHeightQuantity(const char *name, |
---|
| 32 | double offset, double scale, |
---|
[5271] | 33 | GLfloat red, GLfloat green, |
---|
| 34 | GLfloat blue); |
---|
| 35 | /* Draw a height quantity. |
---|
| 36 | */ |
---|
| 37 | extern void AnugaVis_DrawHeightQuantity(struct height_quantity_simple *height); |
---|
[5259] | 38 | /* Undefine a given simple height quantity. |
---|
| 39 | */ |
---|
[5270] | 40 | extern void AnugaVis_UndefineHeightQuantity(const char *name); |
---|
[5259] | 41 | |
---|
[5220] | 42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.