Light Table for Map.
More...
Light Table for Map.
All maps have a lighting table that tells how the sectors affect one another as light enters leaves based on sky, torches, and doors.
- See Also
- http://www.amuletsandarmor.com/AALicense.txt
#define LIGHT_DEAD_TAG (*((T_word32 *)"DlI")) |
#define LIGHT_TAG (*((T_word32 *)"LiT")) |
LightTableLoad loads in a light table and initializes a handle for future references to the light table.
NOTE: The level has to be loaded before the light table is loaded. This program needs to know the number of sectors that are on a map.
- Parameters
-
number | – Number of light table to load |
- Returns
- Handle to light table
LightTableRecalculate does the work to recompute all the lighting values.
- Parameters
-
light | – Handle to light table to recalculate |
outsideLighting | – Lighting level of outside (main) |
LightTableUnload frees up a previously allocated light table.
- Parameters
-
light | – Handle to light table to unload |