convert line ends
[canaan.git] / prj / cam / src / portal / animlit.h
blob3813611c9471fbf7151c7ebd6e365759c1960134
1 /*
2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
4 */
6 // $Header: r:/t2repos/thief2/src/portal/animlit.h,v 1.3 2000/01/29 13:37:11 adurant Exp $
7 #pragma once
9 #ifdef __cplusplus
10 extern "C"
12 #endif
14 extern void LightTurnOff(int t);
15 extern void LightTurnOn(int t);
16 extern void LightTurnOnSet(int t, int b);
17 extern void LightSet(int t, int b);
18 extern bool IsLightOn(int t);
19 extern void LightToggle(int t);
21 // internal function, doesn't change default brightness
22 // could be useful for flickering to partial bright
23 extern void LightSetBrightness(int t, int b);
25 // animation system
26 extern void LightAnimSetScript(int t, uchar *script);
27 extern void LightAnimPlayScripts(int ticks);
29 // Defining the meaning of lights
31 extern void LightDefineStart(void);
32 extern int LightDefineEnd(void);
34 extern void LightCellStart(int cell_id);
35 extern void LightCellEnd(void);
37 extern void LightAtVertex(int vertex, uchar lighting);
39 // clear all existing definitions of lights
40 extern void LightClear(void);
42 //// INTERFACE BACK INTO PORTAL ////
43 // not defined by lighting.h, but I'm making sure to
44 // keep the interface as narrow as possible and this
45 // is one strange way to do it. The function is defined
46 // in portal.c
47 extern unsigned char *portal_get_lighting_data(int cell);
50 #ifdef __cplusplus
52 #endif