| 1 | /* |
| 2 | * Descent 3 |
| 3 | * Copyright (C) 2024 Parallax Software |
| 4 | * |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation, either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | |
| 18 | --- HISTORICAL COMMENTS FOLLOW --- |
| 19 | |
| 20 | * $Logfile: /DescentIII/Main/object_lighting.h $ |
| 21 | * $Revision: 7 $ |
| 22 | * $Date: 3/26/99 3:25p $ |
| 23 | * $Author: Jeff $ |
| 24 | * |
| 25 | * Header for object_lighting.cpp |
| 26 | * |
| 27 | * $Log: /DescentIII/Main/object_lighting.h $ |
| 28 | * |
| 29 | * 7 3/26/99 3:25p Jeff |
| 30 | * option to display hud message when cloaking |
| 31 | * |
| 32 | * 6 1/19/99 4:22p Matt |
| 33 | * Added the ability for objects to have their own lighting info, |
| 34 | * different from the default lighting for that type of object. |
| 35 | * |
| 36 | */ |
| 37 | |
| 38 | #ifndef OBJECT_LIGHTING_H |
| 39 | #define OBJECT_LIGHTING_H |
| 40 | |
| 41 | #include "object.h" |
| 42 | |
| 43 | // Casts light from an object onto the rooms or terrain |
| 44 | void DoObjectLight(object *obj); |
| 45 | |
| 46 | // Frees all the memory associated with lightmap objects |
| 47 | void ClearAllObjectLightmaps(int terrain); |
| 48 | |
| 49 | // Frees all the memory associated with this objects lightmap |
| 50 | void ClearObjectLightmaps(object *obj); |
| 51 | |
| 52 | // Sets up the memory to be used by an object for lightmaps |
| 53 | void SetupObjectLightmapMemory(object *obj); |
| 54 | |
| 55 | // makes the an object cloaked |
| 56 | void MakeObjectInvisible(object *obj, float time, float fade_time = 1.0, bool no_hud_message = false); |
| 57 | |
| 58 | // makes the player visbile |
| 59 | void MakeObjectVisible(object *obj); |
| 60 | |
| 61 | // Returns a pointer to the lighting info for the specified object |
| 62 | light_info *ObjGetLightInfo(object *objp); |
| 63 | |
| 64 | // Sets an object to have local lighting info |
| 65 | void ObjSetLocalLighting(object *objp); |
| 66 | |
| 67 | #endif |