Debian Codegraph @

Descent3/postrender.h

raw symbols SCIP
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
19 #ifndef POSTRENDER_H
20 #define POSTRENDER_H
21
22 #define MAX_POSTRENDERS 3000
23
24 #define PRT_OBJECT 0
25 #define PRT_VISEFFECT 1
26 #define PRT_WALL 2
27
28 struct postrender_struct {
29 uint8_t type; // See types above
30 union {
31 int16_t objnum;
32 int16_t visnum;
33 int16_t facenum;
34 };
35
36 int16_t roomnum;
37 float z;
38 };
39
40 extern int Num_postrenders;
41 extern postrender_struct Postrender_list[];
42
43 void ResetPostrenderList();
44
45 // Renders all the objects/viseffects/walls we have in our postrender list
46 void PostRender(int);
47
48 void DrawPostrenderFace(int roomnum, int facenum, bool change_z = true);
49
50 #endif