Rev | Line | |
---|
[983] | 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(GLuint numTriangles); |
---|
| 17 | extern void fillAllColors(Color *colors, GLuint numTriangles, GLuint begin, GLuint end, GLubyte color); |
---|
| 18 | extern void setColors(Color *colors, GLuint numPasses, GLuint begin, GLuint end); |
---|
| 19 | extern void setColors2(Color *colors, GLuint numTriangles, GLuint begin, GLuint end); |
---|
| 20 | extern void setColors3(Color *colors, GLuint numTriangles, GLubyte color); |
---|
| 21 | extern void setColors4(Color *colors, GLuint numTriangles); |
---|
| 22 | extern void viewColors(Color *colors, GLuint numTriangles); |
---|
| 23 | |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.