source: GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs/vmi/include/color.h @ 2090

Revision 2090, 760 bytes checked in by gumbau, 17 years ago (diff)
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
10namespace       VMI
11{
12typedef struct _Color {
13    GLubyte r, g, b, a;
14} Color;
15
16extern Color *initColors(GLuint numColors);
17extern void fillAllColors(Color *colors, GLuint numColors, GLuint begin, GLuint end, GLubyte color);
18extern void setColors(Color *colors, GLuint numPasses, GLuint begin, GLuint end);
19extern void setColors2(Color *colors, GLuint numColors, GLuint begin, GLuint end);
20extern void setColors3(Color *colors, GLuint numColors, GLubyte color);
21extern void setColors4(Color *colors, GLuint numColors);
22extern void viewColors(Color *colors, GLuint numColors);
23
24}
25
26#endif
Note: See TracBrowser for help on using the repository browser.