aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/extras/Mesa_6.4.1/progs/samples/tkmap.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-08-30 16:54:24 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-08-30 16:55:09 +0200
commit5ecf04c925374c7a3c8d85765053e3cd9c952d67 (patch)
treef55241c6ce2668f153ab8f9a966fb36aab8a801d /nx-X11/extras/Mesa_6.4.1/progs/samples/tkmap.c
parent709bce6cf17d472e65afc845fff87267499d9ad7 (diff)
downloadnx-libs-5ecf04c925374c7a3c8d85765053e3cd9c952d67.tar.gz
nx-libs-5ecf04c925374c7a3c8d85765053e3cd9c952d67.tar.bz2
nx-libs-5ecf04c925374c7a3c8d85765053e3cd9c952d67.zip
nx-X11/extras: Drop Mesa-6.4.1 related files.
Diffstat (limited to 'nx-X11/extras/Mesa_6.4.1/progs/samples/tkmap.c')
-rw-r--r--nx-X11/extras/Mesa_6.4.1/progs/samples/tkmap.c71
1 files changed, 0 insertions, 71 deletions
diff --git a/nx-X11/extras/Mesa_6.4.1/progs/samples/tkmap.c b/nx-X11/extras/Mesa_6.4.1/progs/samples/tkmap.c
deleted file mode 100644
index 3ded79cac..000000000
--- a/nx-X11/extras/Mesa_6.4.1/progs/samples/tkmap.c
+++ /dev/null
@@ -1,71 +0,0 @@
-
-enum {
- COLOR_BLACK = 0,
- COLOR_RED,
- COLOR_GREEN,
- COLOR_YELLOW,
- COLOR_BLUE,
- COLOR_MAGENTA,
- COLOR_CYAN,
- COLOR_WHITE
-};
-
-static float RGBMap[9][3] = {
- {0, 0, 0},
- {1, 0, 0},
- {0, 1, 0},
- {1, 1, 0},
- {0, 0, 1},
- {1, 0, 1},
- {0, 1, 1},
- {1, 1, 1},
- {0.5, 0.5, 0.5}
-};
-
-static void SetColor(int c)
-{
- if (glutGet(GLUT_WINDOW_RGBA))
- glColor3fv(RGBMap[c]);
- else
- glIndexf(c);
-}
-
-static void InitMap(void)
-{
- int i;
-
- if (rgb)
- return;
-
- for (i = 0; i < 9; i++)
- glutSetColor(i, RGBMap[i][0], RGBMap[i][1], RGBMap[i][2]);
-}
-
-static void SetFogRamp(int density, int startIndex)
-{
- int fogValues, colorValues;
- int i, j, k;
- float intensity;
-
- fogValues = 1 << density;
- colorValues = 1 << startIndex;
- for (i = 0; i < colorValues; i++) {
- for (j = 0; j < fogValues; j++) {
- k = i * fogValues + j;
- intensity = (i * fogValues + j * colorValues) / 255.0;
- glutSetColor(k, intensity, intensity, intensity);
- }
- }
-}
-
-static void SetGreyRamp(void)
-{
- int i;
- float intensity;
-
- for (i = 0; i < 255; i++) {
- intensity = i / 255.0;
- glutSetColor(i, intensity, intensity, intensity);
- }
-}
-