source: anuga_work/development/anugavis/src/height_quantity.h @ 5487

Last change on this file since 5487 was 5271, checked in by jack, 16 years ago

AnugaVis?: Something's drawing. Starting work on event handling to get motion.

File size: 1.0 KB
Line 
1#ifndef HEIGHT_QUANTITY_H
2#define HEIGHT_QUANTITY_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
16struct height_quantity_simple {
17  char *name;
18  uint8_t frames;
19  double offset;
20  double scale;
21  GLfloat red;
22  GLfloat green;
23  GLfloat blue;
24  GLuint displayLists;
25  struct height_quantity_simple *next;
26};
27
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 */
31extern int AnugaVis_DefineHeightQuantity(const char *name,
32                                         double offset, double scale,
33                                         GLfloat red, GLfloat green,
34                                         GLfloat blue);
35/* Draw a height quantity.
36 */
37extern void AnugaVis_DrawHeightQuantity(struct height_quantity_simple *height);
38/* Undefine a given simple height quantity.
39 */
40extern void AnugaVis_UndefineHeightQuantity(const char *name);
41
42#endif
Note: See TracBrowser for help on using the repository browser.