Debian Codegraph @

lib/findintersection_external.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 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/main/lib/findintersection_external.h $
21 * $Revision: 6 $
22 * $Date: 4/18/99 5:42a $
23 * $Author: Chris $
24 *
25 * Description goes here
26 *
27 * $Log: /DescentIII/main/lib/findintersection_external.h $
28 *
29 * 6 4/18/99 5:42a Chris
30 * Added the FQ_IGNORE_RENDER_THROUGH_PORTALS flag
31 *
32 * 5 4/05/99 3:58p Chris
33 * Made the FQ_ flags easier to read
34 *
35 * 4 3/27/99 3:25p Chris
36 * Added comment headers
37 *
38 * $NoKeywords: $
39 */
40
41 #ifndef FINDINTERSECTION_EXTERNAL_H_
42 #define FINDINTERSECTION_EXTERNAL_H_cxx . . $ `lib/findintersection_external.h:42:9`!
43
44 // return values for find_vector_intersection()
45 #define HIT_NONEcxx . . $ `lib/findintersection_external.h:45:9`! 0 // we hit nothing
46 #define HIT_WALLcxx . . $ `lib/findintersection_external.h:46:9`! 1 // we hit a wall
47 #define HIT_OBJECTcxx . . $ `lib/findintersection_external.h:47:9`! 2 // we hit an object
48 #define HIT_TERRAINcxx . . $ `lib/findintersection_external.h:48:9`! 3 // we hit the terrain
49 #define HIT_BAD_P0cxx . . $ `lib/findintersection_external.h:49:9`! 4 // start point not is specified segment
50 #define HIT_OUT_OF_TERRAIN_BOUNDScxx . . $ `lib/findintersection_external.h:50:9`! 5 // End point is outside of the terrain
51 #define HIT_BACKFACEcxx . . $ `lib/findintersection_external.h:51:9`! 6 // We hit the backface of a wall...
52 #define HIT_SPHERE_2_POLY_OBJECTcxx . . $ `lib/findintersection_external.h:52:9`! 7 // Hit a sphere to a real polygon
53 #define HIT_CEILINGcxx . . $ `lib/findintersection_external.h:53:9`! 8 // Object hit the ceiling
54 #define HIT_CORNER_WALLcxx . . $ `lib/findintersection_external.h:54:9`! 9
55 #define HIT_EDGE_WALLcxx . . $ `lib/findintersection_external.h:55:9`! 10
56 #define HIT_FACE_WALLcxx . . $ `lib/findintersection_external.h:56:9`! 11
57
58 // flags for fvi query
59 #define FQ_CHECK_OBJScxx . . $ `lib/findintersection_external.h:59:9`! 1 // check against objects?
60 #define FQ_OBJ_BACKFACEcxx . . $ `lib/findintersection_external.h:60:9`! (1 << 1) // Hit the backfaces of polyobjs
61 #define FQ_TRANSPOINTcxx . . $ `lib/findintersection_external.h:61:9`! (1 << 2) // go through trans wall if hit point is transparent
62 #define FQ_IGNORE_POWERUPScxx . . $ `lib/findintersection_external.h:62:9`! (1 << 3) // ignore powerups
63 #define FQ_BACKFACEcxx . . $ `lib/findintersection_external.h:63:9`! (1 << 4) // Check for collisions with backfaces, usually they are ignored
64 #define FQ_SOLID_PORTALScxx . . $ `lib/findintersection_external.h:64:9`! (1 << 5) // Makes connectivity disappear for FVI
65 #define FQ_RECORDcxx . . $ `lib/findintersection_external.h:65:9`! (1 << 6) // Records faces that should be recorded
66 #define FQ_NEW_RECORD_LISTcxx . . $ `lib/findintersection_external.h:66:9`! (1 << 7) // Records faces that should be recorded
67 #define FQ_IGNORE_MOVING_OBJECTScxx . . $ `lib/findintersection_external.h:67:9`! (1 << 8) // Ignores all objects that move
68 #define FQ_IGNORE_NON_LIGHTMAP_OBJECTScxx . . $ `lib/findintersection_external.h:68:9`! (1 << 9) // Ignores all objects that are not associated with lightmaps
69 #define FQ_ONLY_PLAYER_OBJcxx . . $ `lib/findintersection_external.h:69:9`! (1 << 10) // Ignores all objects besides the player
70 #define FQ_IGNORE_WALLScxx . . $ `lib/findintersection_external.h:70:9`! (1 << 11) // Ignores all walls (it will still hit OBJ_ROOMS)
71 #define FQ_CHECK_CEILINGcxx . . $ `lib/findintersection_external.h:71:9`! (1 << 12) // Checks if object hits the imaginary ceiling
72 #define FQ_ONLY_DOOR_OBJcxx . . $ `lib/findintersection_external.h:72:9`! (1 << 13) // Ignores all objects, except doors
73 #define FQ_NO_RELINKcxx . . $ `lib/findintersection_external.h:73:9`! (1 << 14) // Does not determine the hitseg
74 #define FQ_EXTERNAL_ROOMS_AS_SPHEREcxx . . $ `lib/findintersection_external.h:74:9`! (1 << 15) // Hmmm....
75 #define FQ_MULTI_POINTcxx . . $ `lib/findintersection_external.h:75:9`! (1 << 16) // Enable Multi-point collision
76 #define FQ_LIGHTINGcxx . . $ `lib/findintersection_external.h:76:9`! (1 << 17) // Lighting only optimizations
77 #define FQ_COMPUTE_MOVEMENT_TIMEcxx . . $ `lib/findintersection_external.h:77:9`! (1 << 18)
78 #define FQ_IGNORE_EXTERNAL_ROOMScxx . . $ `lib/findintersection_external.h:78:9`! (1 << 19)
79 #define FQ_IGNORE_WEAPONScxx . . $ `lib/findintersection_external.h:79:9`! (1 << 20)
80 #define FQ_IGNORE_TERRAINcxx . . $ `lib/findintersection_external.h:80:9`! (1 << 21)
81 #define FQ_PLAYERS_AS_SPHEREcxx . . $ `lib/findintersection_external.h:81:9`! (1 << 22)
82 #define FQ_ROBOTS_AS_SPHEREcxx . . $ `lib/findintersection_external.h:82:9`! (1 << 23)
83 #define FQ_IGNORE_CLUTTER_COLLISIONScxx . . $ `lib/findintersection_external.h:83:9`! (1 << 24)
84 #define FQ_IGNORE_RENDER_THROUGH_PORTALScxx . . $ `lib/findintersection_external.h:84:9`! (1 << 25)
85
86 #endif