Last change
on this file since 5270 was
5270,
checked in by jack, 16 years ago
|
Fixed parameters for AnugaVis_UndefineHeightQuantity.
|
File size:
832 bytes
|
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 | #ifdef HAVE_GL_GL_H |
---|
9 | # include <GL/gl.h> |
---|
10 | #elif HAVE_OPENGL_GL_H |
---|
11 | # include <OpenGL/gl.h> |
---|
12 | #endif |
---|
13 | #include <SDL.h> |
---|
14 | |
---|
15 | struct height_quantity_simple{ |
---|
16 | char *name; |
---|
17 | uint8_t frames; |
---|
18 | double offset; |
---|
19 | double scale; |
---|
20 | Uint32 color; |
---|
21 | GLuint displayLists; |
---|
22 | struct height_quantity_simple *next; |
---|
23 | }; |
---|
24 | |
---|
25 | /* Define (or redefine if already defined a simple height quantity with the |
---|
26 | * given offset, scale, and color. Returns 0 on success, -1 on error. |
---|
27 | */ |
---|
28 | extern int AnugaVis_DefineHeightQuantity(const char *name, |
---|
29 | double offset, double scale, |
---|
30 | int red, int green, int blue); |
---|
31 | /* Undefine a given simple height quantity. |
---|
32 | */ |
---|
33 | extern void AnugaVis_UndefineHeightQuantity(const char *name); |
---|
34 | |
---|
35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.