22 #ifndef KJB_CPP_OPENGL_COLOR_H
23 #define KJB_CPP_OPENGL_COLOR_H
51 rgb[1] = (i >> 8) & 0xFF;
52 rgb[2] = (i >> 16) & 0xFF;
62 static_cast<unsigned int>(rgb[0]) |
63 (static_cast<unsigned int>(rgb[1]) << 8) |
64 (static_cast<unsigned int>(rgb[2]) << 16);
unsigned int rgb_to_uint(unsigned char rgb[3])
Definition: gr_opengl_color.h:59
const Vector3 BLACK(0.0, 0.0, 0.0)
Definition: gr_opengl_color.h:33
const Vector3 WHITE(1.0, 1.0, 1.0)
Definition: gr_opengl_color.h:32
const Vector3 CYAN(0.0, 1.0, 1.0)
Definition: gr_opengl_color.h:40
const Vector3 YELLOW(1.0, 1.0, 0.0)
Definition: gr_opengl_color.h:39
get the indices of edges in each direction for i
Definition: APPgetLargeConnectedEdges.m:48
const Vector3 BLUE(0.0, 0.0, 1.0)
Definition: gr_opengl_color.h:37
void uint_to_rgb(unsigned int i, unsigned char *rgb)
Definition: gr_opengl_color.h:48
const Vector3 GREEN(0.0, 1.0, 0.0)
Definition: gr_opengl_color.h:36
const Vector3 MAGENTA(1.0, 0.0, 1.0)
Definition: gr_opengl_color.h:41
const Vector3 RED(1.0, 0.0, 0.0)
Definition: gr_opengl_color.h:35