Lines Matching defs:ndx
15 glutSetColor(int ndx, GLfloat red, GLfloat green, GLfloat blue)
28 if (ndx == __glutCurrentWindow->overlay->transparentPixel) {
31 ndx);
41 if (ndx >= 256 || /* always assume 256 colors on Win32 */
43 if (ndx >= vis->visual->map_entries ||
45 ndx < 0) {
46 __glutWarning("glutSetColor: index %d out of range", ndx);
55 if (i == ndx) {
108 color.pixel = ndx;
110 cmap->cells[ndx].component[GLUT_RED] = red;
113 cmap->cells[ndx].component[GLUT_GREEN] = green;
116 cmap->cells[ndx].component[GLUT_BLUE] = blue;
130 glutGetColor(int ndx, int comp)
141 if (ndx == __glutCurrentWindow->overlay->transparentPixel) {
143 ndx);
153 #define OUT_OF_RANGE_NDX(ndx) (ndx >= 256 || ndx < 0)
155 #define OUT_OF_RANGE_NDX(ndx) (ndx >= vis->visual->map_entries || ndx < 0)
157 if (OUT_OF_RANGE_NDX(ndx)) {
158 __glutWarning("glutGetColor: index %d out of range", ndx);
161 return colormap->cells[ndx].component[comp];