Line | |
---|
1 | #ifndef __color_h_ |
---|
2 | #define __color_h_ |
---|
3 | |
---|
4 | #include "GL/glut.h" |
---|
5 | |
---|
6 | #define MAX_NUM_COLORS 1020 // (256 + 256 + 256 + 256) - 4 R G B A |
---|
7 | #define BACKGROUND 0 // Background color |
---|
8 | |
---|
9 | |
---|
10 | namespace VMI
|
---|
11 | { |
---|
12 | typedef struct _Color { |
---|
13 | GLubyte r, g, b, a; |
---|
14 | } Color; |
---|
15 | |
---|
16 | extern Color *initColors(int numColors); |
---|
17 | extern void fillAllColors(Color *colors, int numColors, int begin, int end, GLubyte color); |
---|
18 | extern void setColors(Color *colors, int numPasses, int begin, int end); |
---|
19 | extern void setColors2(Color *colors, int numColors, int begin, int end); |
---|
20 | extern void setColors3(Color *colors, int numColors, GLubyte color); |
---|
21 | extern void setColors4(Color *colors, int numColors); |
---|
22 | extern void viewColors(Color *colors, int numColors); |
---|
23 | |
---|
24 | } |
---|
25 | |
---|
26 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.