| 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/gamecinematics.h $ |
| 21 | * $Revision: 8 $ |
| 22 | * $Date: 4/28/99 3:32a $ |
| 23 | * $Author: Jeff $ |
| 24 | * |
| 25 | * In-Game Cinematics system |
| 26 | * |
| 27 | * $Log: /DescentIII/main/gamecinematics.h $ |
| 28 | * |
| 29 | * 8 4/28/99 3:32a Jeff |
| 30 | * created cinematic level reset function |
| 31 | * |
| 32 | * 7 4/27/99 8:31p Jason |
| 33 | * fixed cinematic bug |
| 34 | * |
| 35 | * 6 3/10/99 6:20p Jeff |
| 36 | * many fixes to demo system. Fixed IGC so cameras move...fixed osiris to |
| 37 | * be restored correctly, and it handles errors on restore |
| 38 | * |
| 39 | * 5 2/23/99 12:44a Jeff |
| 40 | * added support for in-game-cinematics in demo system |
| 41 | * |
| 42 | * 4 2/14/99 1:16a Jeff |
| 43 | * added canned cinematic function/structures. Added a flag to push |
| 44 | * target to end of path if on a path (quick exit). Added canned intro |
| 45 | * cine. Determine correct velocity on player ship for intro cine. |
| 46 | * |
| 47 | * 3 2/01/99 12:55p Jeff |
| 48 | * restore correct hud mode, added flag to stop cinematics if target dies |
| 49 | * |
| 50 | * 2 1/31/99 8:48p Jeff |
| 51 | * new in game cinematics system finished |
| 52 | * |
| 53 | * $NoKeywords: $ |
| 54 | */ |
| 55 | |
| 56 | #ifndef __INGAME_CINEMATICS_H_ |
| 57 | #define __INGAME_CINEMATICS_H_ |
| 58 | |
| 59 | #include "vecmat_external.h" |
| 60 | #include "gamecinematics_external.h" |
| 61 | #include "hud.h" |
| 62 | |
| 63 | // Cinematic_Init |
| 64 | // |
| 65 | // Initializes the in-game cinematics |
| 66 | void Cinematic_Init(void); |
| 67 | |
| 68 | // Cinematic_Close |
| 69 | // |
| 70 | // Closes the in-game cinematics |
| 71 | void Cinematic_Close(void); |
| 72 | |
| 73 | // Cinematic_Start |
| 74 | // |
| 75 | // Starts an in-game cinematic sequence. text_string is the text to be displayed |
| 76 | // use pipes (|) to seperate lines. |
| 77 | bool Cinematic_Start(tGameCinematic *info, char *text_string); |
| 78 | |
| 79 | // Cinematic_Stop |
| 80 | // |
| 81 | // Stops and clears up a in-game cinematic. |
| 82 | void Cinematic_Stop(void); |
| 83 | |
| 84 | // Cinematic_Frame |
| 85 | // |
| 86 | // Processes a frame for the Cinematics |
| 87 | void Cinematic_Frame(void); |
| 88 | |
| 89 | // Renders anything that needs to be rendered for the cinematic frame |
| 90 | void Cinematic_RenderFrame(void); |
| 91 | |
| 92 | void Cinematic_LevelInit(void); |
| 93 | |
| 94 | extern bool Cinematic_inuse; |
| 95 | extern bool Cinematic_fake_queued; |
| 96 | |
| 97 | // Returns the hud mode before cinematics |
| 98 | tHUDMode Cinematic_GetOldHudMode(void); |
| 99 | |
| 100 | // Starts a canned cinematic sequence |
| 101 | // Only the demo system passing in a camera_handle, so it should never be explicitly passed by you |
| 102 | void Cinematic_StartCanned(tCannedCinematicInfo *info, int camera_handle = -1); |
| 103 | |
| 104 | void Cinematic_DoDemoFileData(uint8_t *data); |
| 105 | |
| 106 | #endif |