| 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_Hcxx . . $ `Descent3/postrender.h:20:9`! |
| 21 | |
| 22 | #define MAX_POSTRENDERScxx . . $ `Descent3/postrender.h:22:9`! 3000 |
| 23 | |
| 24 | #define PRT_OBJECTcxx . . $ `Descent3/postrender.h:24:9`! 0 |
| 25 | #define PRT_VISEFFECTcxx . . $ `Descent3/postrender.h:25:9`! 1 |
| 26 | #define PRT_WALLcxx . . $ `Descent3/postrender.h:26:9`! 2 |
| 27 | |
| 28 | struct postrender_structcxx . . $ postrender_struct# { |
| 29 | uint8_tcxx . . $ uint8_t# typecxx . . $ postrender_struct#type.; // See types above |
| 30 | unioncxx . . $ postrender_struct#$anonymous_type_0# { |
| 31 | int16_t objnumcxx . . $ postrender_struct#$anonymous_type_0#objnum.; |
| 32 | int16_t visnumcxx . . $ postrender_struct#$anonymous_type_0#visnum.; |
| 33 | int16_t facenumcxx . . $ postrender_struct#$anonymous_type_0#facenum.; |
| 34 | }; |
| 35 | |
| 36 | int16_t roomnumcxx . . $ postrender_struct#roomnum.; |
| 37 | float zcxx . . $ postrender_struct#z.; |
| 38 | }; |
| 39 | |
| 40 | extern int Num_postrenderscxx . . $ Num_postrenders.; |
| 41 | extern postrender_structcxx . . $ postrender_struct# Postrender_listcxx . . $ Postrender_list.[]; |
| 42 | |
| 43 | void ResetPostrenderListcxx . . $ ResetPostrenderList(49f6e7a06ebc5aa8).(); |
| 44 | |
| 45 | // Renders all the objects/viseffects/walls we have in our postrender list |
| 46 | void PostRendercxx . . $ PostRender(d4f767463ce0a6b3).(int); |
| 47 | |
| 48 | void DrawPostrenderFacecxx . . $ DrawPostrenderFace(6908015b96d379c0).(int roomnum, int facenum, bool change_z = true); |
| 49 | |
| 50 | #endif |