From 3f59fc8b771625aca9c3aefe03cf1038d8461963 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 7 Jul 2019 22:00:20 -0400 Subject: Wolfenstein 3-D! This is a port of Wolf4SDL, which is derived from the original id software source release. The port runs on top of the SDL plugin runtime and is loaded as an overlay. Licensing of the game code is not an issue, as discussed below (essentially, the Debian project treats Wolf4SDL as GPLv2, with an email from John Carmack backing it up): http://forums.rockbox.org/index.php?topic=52872 Included is a copy of MAME's Yamaha OPL sound chip emulator (fmopl_gpl.c). This file was not part of the original Wolf4SDL source (which includes a non-GPL'd version), but was rather rebased from from a later MAME source which had been relicensed to GPLv2. Change-Id: I64c2ba035e0be7e2f49252f40640641416613439 --- apps/plugins/sdl/progs/wolf3d/wl_shade.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 apps/plugins/sdl/progs/wolf3d/wl_shade.h (limited to 'apps/plugins/sdl/progs/wolf3d/wl_shade.h') 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 -- cgit v1.2.3