summaryrefslogtreecommitdiffstats
path: root/apps/plugins/sdl/progs/wolf3d/wl_shade.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sdl/progs/wolf3d/wl_shade.h')
-rw-r--r--apps/plugins/sdl/progs/wolf3d/wl_shade.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/plugins/sdl/progs/wolf3d/wl_shade.h b/apps/plugins/sdl/progs/wolf3d/wl_shade.h
new file mode 100644
index 0000000000..690356611b
--- /dev/null
+++ b/apps/plugins/sdl/progs/wolf3d/wl_shade.h
@@ -0,0 +1,15 @@
+#if defined(USE_SHADING) && !defined(_WL_SHADE_H_)
+#define _WL_SHADE_H_
+
+#define SHADE_COUNT 32
+
+#define LSHADE_NOSHADING 0xff
+#define LSHADE_NORMAL 0
+#define LSHADE_FOG 5
+
+extern uint8_t shadetable[SHADE_COUNT][256];
+
+void InitLevelShadeTable();
+int GetShade(int scale);
+
+#endif