-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathColor.h
More file actions
44 lines (39 loc) · 955 Bytes
/
Color.h
File metadata and controls
44 lines (39 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// Filename: "Color.h"
//
// Programmer: Ross Mead
// Last modified: 30Nov2009
//
// Description: This enumerated type defines a color.
//
// preprocessor directives
#ifndef COLOR_H
#define COLOR_H
#include "GLIncludes.h"
// predefined colors
enum Color // color array index values
{
INVISIBLE = 0,
BLACK,
WHITE,
RED,
YELLOW,
GREEN,
CYAN,
BLUE,
MAGENTA
}; // Color
const GLint N_COLORS = 9; // number of colors
const GLfloat COLOR[N_COLORS][3] = // color array
{
{-1.0f, -1.0f, -1.0f}, // INVISIBLE
{ 0.0f, 0.0f, 0.0f}, // BLACK
{ 1.0f, 1.0f, 1.0f}, // WHITE
{ 1.0f, 0.0f, 0.0f}, // RED
{ 1.0f, 1.0f, 0.0f}, // YELLOW
{ 0.0f, 1.0f, 0.0f}, // GREEN
{ 0.0f, 1.0f, 1.0f}, // CYAN
{ 0.0f, 0.0f, 1.0f}, // BLUE
{ 1.0f, 0.0f, 1.0f} // MAGENTA
}; // COLOR[][]
#endif