Home
last modified time | relevance | path

Searched refs:leafnum (Results 1 – 25 of 201) sorted by relevance

123456789

/dports/games/libretro-tyrquake/tyrquake-e76477d/common/
H A Dmodel.h483 return !!(bits->bits[leafnum >> LEAFSHIFT] & (1UL << (leafnum & LEAFMASK))); in Mod_TestLeafBit()
498 leafnum += (1 << LEAFSHIFT); in Mod_NextLeafBit()
499 leafnum &= ~LEAFMASK; in Mod_NextLeafBit()
500 if (leafnum < leafbits->numleafs) in Mod_NextLeafBit()
503 leafnum += (1 << LEAFSHIFT); in Mod_NextLeafBit()
504 if (leafnum < leafbits->numleafs) in Mod_NextLeafBit()
505 *check = leafbits->bits[leafnum >> LEAFSHIFT]; in Mod_NextLeafBit()
512 leafnum = (leafnum & ~LEAFMASK) + bit; in Mod_NextLeafBit()
515 return leafnum; in Mod_NextLeafBit()
523 leafnum < leafbits->numleafs; \
[all …]
/dports/games/openjk/OpenJK-07675e2/codemp/server/
H A Dsv_game.cpp85 int leafnum; in SV_inPVS() local
90 leafnum = CM_PointLeafnum (p1); in SV_inPVS()
91 cluster = CM_LeafCluster (leafnum); in SV_inPVS()
92 area1 = CM_LeafArea (leafnum); in SV_inPVS()
95 leafnum = CM_PointLeafnum (p2); in SV_inPVS()
96 cluster = CM_LeafCluster (leafnum); in SV_inPVS()
97 area2 = CM_LeafArea (leafnum); in SV_inPVS()
/dports/games/quake2-source/quake2-r0.16.2/src/server/
H A Dsv_game.c238 int leafnum; in PF_inPVS() local
243 leafnum = CM_PointLeafnum (p1); in PF_inPVS()
244 cluster = CM_LeafCluster (leafnum); in PF_inPVS()
245 area1 = CM_LeafArea (leafnum); in PF_inPVS()
248 leafnum = CM_PointLeafnum (p2); in PF_inPVS()
250 area2 = CM_LeafArea (leafnum); in PF_inPVS()
268 int leafnum; in PF_inPHS() local
273 leafnum = CM_PointLeafnum (p1); in PF_inPHS()
275 area1 = CM_LeafArea (leafnum); in PF_inPHS()
278 leafnum = CM_PointLeafnum (p2); in PF_inPHS()
[all …]
H A Dsv_send.c165 int leafnum, cluster; in SV_Multicast() local
174 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
175 area1 = CM_LeafArea (leafnum); in SV_Multicast()
179 leafnum = 0; // just to avoid compiler warnings in SV_Multicast()
192 leafnum = 0; in SV_Multicast()
199 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
200 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
207 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
208 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
228 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
[all …]
/dports/games/quake2lnx/quake2-r0.16.2/src/server/
H A Dsv_game.c238 int leafnum; in PF_inPVS() local
243 leafnum = CM_PointLeafnum (p1); in PF_inPVS()
244 cluster = CM_LeafCluster (leafnum); in PF_inPVS()
245 area1 = CM_LeafArea (leafnum); in PF_inPVS()
248 leafnum = CM_PointLeafnum (p2); in PF_inPVS()
250 area2 = CM_LeafArea (leafnum); in PF_inPVS()
268 int leafnum; in PF_inPHS() local
273 leafnum = CM_PointLeafnum (p1); in PF_inPHS()
275 area1 = CM_LeafArea (leafnum); in PF_inPHS()
278 leafnum = CM_PointLeafnum (p2); in PF_inPHS()
[all …]
H A Dsv_send.c165 int leafnum, cluster; in SV_Multicast() local
174 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
175 area1 = CM_LeafArea (leafnum); in SV_Multicast()
179 leafnum = 0; // just to avoid compiler warnings in SV_Multicast()
192 leafnum = 0; in SV_Multicast()
199 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
200 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
207 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
208 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
228 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
[all …]
/dports/games/quake2max/Quake2maX_0.45-src_unix/server/
H A Dsv_game.c237 int leafnum; in PF_inPVS() local
242 leafnum = CM_PointLeafnum (p1); in PF_inPVS()
243 cluster = CM_LeafCluster (leafnum); in PF_inPVS()
244 area1 = CM_LeafArea (leafnum); in PF_inPVS()
247 leafnum = CM_PointLeafnum (p2); in PF_inPVS()
249 area2 = CM_LeafArea (leafnum); in PF_inPVS()
267 int leafnum; in PF_inPHS() local
272 leafnum = CM_PointLeafnum (p1); in PF_inPHS()
274 area1 = CM_LeafArea (leafnum); in PF_inPHS()
277 leafnum = CM_PointLeafnum (p2); in PF_inPHS()
[all …]
H A Dsv_send.c165 int leafnum, cluster; in SV_Multicast() local
174 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
175 area1 = CM_LeafArea (leafnum); in SV_Multicast()
179 leafnum = 0; // just to avoid compiler warnings in SV_Multicast()
192 leafnum = 0; in SV_Multicast()
199 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
200 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
207 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
208 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
228 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
[all …]
/dports/games/q2p/Q2P-0.2-2006-12-31/server/
H A Dsv_game.c239 int leafnum; in PF_inPVS() local
244 leafnum = CM_PointLeafnum (p1); in PF_inPVS()
245 cluster = CM_LeafCluster (leafnum); in PF_inPVS()
246 area1 = CM_LeafArea (leafnum); in PF_inPVS()
249 leafnum = CM_PointLeafnum (p2); in PF_inPVS()
251 area2 = CM_LeafArea (leafnum); in PF_inPVS()
269 int leafnum; in PF_inPHS() local
274 leafnum = CM_PointLeafnum (p1); in PF_inPHS()
276 area1 = CM_LeafArea (leafnum); in PF_inPHS()
279 leafnum = CM_PointLeafnum (p2); in PF_inPHS()
[all …]
H A Dsv_send.c165 int leafnum, cluster; in SV_Multicast() local
174 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
175 area1 = CM_LeafArea (leafnum); in SV_Multicast()
179 leafnum = 0; // just to avoid compiler warnings in SV_Multicast()
192 leafnum = 0; in SV_Multicast()
199 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
200 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
207 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
208 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
228 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
[all …]
/dports/games/qudos/QuDos-0.40.1-src/src/server/
H A Dsv_game.c260 int leafnum; in PF_inPVS() local
265 leafnum = CM_PointLeafnum(p1); in PF_inPVS()
266 cluster = CM_LeafCluster(leafnum); in PF_inPVS()
267 area1 = CM_LeafArea(leafnum); in PF_inPVS()
270 leafnum = CM_PointLeafnum(p2); in PF_inPVS()
272 area2 = CM_LeafArea(leafnum); in PF_inPVS()
289 int leafnum; in PF_inPHS() local
294 leafnum = CM_PointLeafnum(p1); in PF_inPHS()
296 area1 = CM_LeafArea(leafnum); in PF_inPHS()
299 leafnum = CM_PointLeafnum(p2); in PF_inPHS()
[all …]
H A Dsv_send.c165 int leafnum, cluster; in SV_Multicast() local
173 leafnum = CM_PointLeafnum(origin); in SV_Multicast()
174 area1 = CM_LeafArea(leafnum); in SV_Multicast()
176 leafnum = 0; /* just to avoid compiler warnings */ in SV_Multicast()
188 leafnum = 0; in SV_Multicast()
195 leafnum = CM_PointLeafnum(origin); in SV_Multicast()
196 cluster = CM_LeafCluster(leafnum); in SV_Multicast()
203 leafnum = CM_PointLeafnum(origin); in SV_Multicast()
204 cluster = CM_LeafCluster(leafnum); in SV_Multicast()
222 cluster = CM_LeafCluster(leafnum); in SV_Multicast()
[all …]
/dports/games/quetoo/quetoo-0.6.1/src/
H A Dsv_game.c231 int leafnum; in PF_inPVS() local
236 leafnum = CM_PointLeafnum(p1); in PF_inPVS()
237 cluster = CM_LeafCluster(leafnum); in PF_inPVS()
238 area1 = CM_LeafArea(leafnum); in PF_inPVS()
241 leafnum = CM_PointLeafnum(p2); in PF_inPVS()
243 area2 = CM_LeafArea(leafnum); in PF_inPVS()
258 int leafnum; in PF_inPHS() local
263 leafnum = CM_PointLeafnum(p1); in PF_inPHS()
265 area1 = CM_LeafArea(leafnum); in PF_inPHS()
268 leafnum = CM_PointLeafnum(p2); in PF_inPHS()
[all …]
H A Dsv_send.c145 int leafnum, cluster; in SV_Multicast() local
153 leafnum = CM_PointLeafnum(origin); in SV_Multicast()
154 area1 = CM_LeafArea(leafnum); in SV_Multicast()
156 leafnum = 0; // just to avoid compiler warnings in SV_Multicast()
164 leafnum = 0; in SV_Multicast()
171 leafnum = CM_PointLeafnum(origin); in SV_Multicast()
172 cluster = CM_LeafCluster(leafnum); in SV_Multicast()
179 leafnum = CM_PointLeafnum(origin); in SV_Multicast()
180 cluster = CM_LeafCluster(leafnum); in SV_Multicast()
198 cluster = CM_LeafCluster(leafnum); in SV_Multicast()
[all …]
/dports/games/vavoom/vavoom-1.33/utils/glvis/
H A Dflow.cpp66 if (srcportal->mightsee[leafnum >> 3] & (1 << (leafnum & 7))) in SimpleFlood()
68 srcportal->mightsee[leafnum >> 3] |= (1 << (leafnum & 7)); in SimpleFlood()
71 leaf = &subsectors[leafnum]; in SimpleFlood()
382 leaf = &subsectors[leafnum]; in RecursiveLeafFlow()
386 if (!(thread->leafvis[leafnum >> 3] & (1 << (leafnum & 7)))) in RecursiveLeafFlow()
388 thread->leafvis[leafnum >> 3] |= 1 << (leafnum & 7); in RecursiveLeafFlow()
638 void TVisBuilder::LeafFlow(int leafnum) in LeafFlow() argument
649 outbuffer = vis + leafnum * rowbytes; in LeafFlow()
650 leaf = &subsectors[leafnum]; in LeafFlow()
662 if (outbuffer[leafnum >> 3] & (1 << (leafnum & 7))) in LeafFlow()
[all …]
/dports/games/egl/egl-0.3.1_9/server/
H A Dsv_gameapi.c157 int leafnum; in GI_IsInPVS() local
162 leafnum = CM_PointLeafnum (p1); in GI_IsInPVS()
163 cluster = CM_LeafCluster (leafnum); in GI_IsInPVS()
164 area1 = CM_LeafArea (leafnum); in GI_IsInPVS()
167 leafnum = CM_PointLeafnum (p2); in GI_IsInPVS()
169 area2 = CM_LeafArea (leafnum); in GI_IsInPVS()
190 int leafnum; in GI_IsInPHS() local
195 leafnum = CM_PointLeafnum (p1); in GI_IsInPHS()
197 area1 = CM_LeafArea (leafnum); in GI_IsInPHS()
200 leafnum = CM_PointLeafnum (p2); in GI_IsInPHS()
[all …]
/dports/games/openjk/OpenJK-07675e2/code/qcommon/
H A Dcm_test.cpp156 int leafnum; in CM_StoreBrushes() local
161 leafnum = -1 - nodenum; in CM_StoreBrushes()
163 leaf = &cmg.leafs[leafnum]; in CM_StoreBrushes()
271 int leafnum=0; in CM_PointContents() local
314 leafnum = pointToLeaf[l].leaf; in CM_PointContents()
332 pointToLeaf[l].leaf = leafnum; in CM_PointContents()
356 leaf = &local->leafs[leafnum]; in CM_PointContents()
386 int leafnum=0; in CM_PointContents() local
417 leafnum=CM_PointLeafnum_r(p, 0); in CM_PointContents()
418 leaf = &cmg.leafs[leafnum]; in CM_PointContents()
[all …]
/dports/games/uhexen2/hexen2source-1.5.9/utils/vis/
H A Dflow.c315 static void RecursiveLeafFlow (int leafnum, threaddata_t *thread, pstack_t *prevstack) in RecursiveLeafFlow() argument
328 leaf = &leafs[leafnum]; in RecursiveLeafFlow()
332 if (! (thread->leafvis[leafnum>>3] & (1<<(leafnum & 7)) ) ) in RecursiveLeafFlow()
334 thread->leafvis[leafnum>>3] |= 1<<(leafnum & 7); in RecursiveLeafFlow()
522 static void SimpleFlood (portal_t *srcportal, int leafnum) in SimpleFlood() argument
528 if (srcportal->mightsee[leafnum>>3] & (1<<(leafnum & 7)) ) in SimpleFlood()
530 srcportal->mightsee[leafnum>>3] |= (1<<(leafnum & 7)); in SimpleFlood()
533 leaf = &leafs[leafnum]; in SimpleFlood()
/dports/games/alienarena/alienarena-7.66/source/server/
H A Dsv_send.c170 int leafnum, cluster; in SV_Multicast() local
198 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
199 area1 = CM_LeafArea (leafnum); in SV_Multicast()
200 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
208 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
209 area1 = CM_LeafArea (leafnum); in SV_Multicast()
210 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
229 leafnum = CM_PointLeafnum (client->edict->s.origin); in SV_Multicast()
230 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
233 area2 = CM_LeafArea (leafnum); in SV_Multicast()
/dports/games/alienarena-data/alienarena-7.66/source/server/
H A Dsv_send.c170 int leafnum, cluster; in SV_Multicast() local
198 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
199 area1 = CM_LeafArea (leafnum); in SV_Multicast()
200 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
208 leafnum = CM_PointLeafnum (origin); in SV_Multicast()
209 area1 = CM_LeafArea (leafnum); in SV_Multicast()
210 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
229 leafnum = CM_PointLeafnum (client->edict->s.origin); in SV_Multicast()
230 cluster = CM_LeafCluster (leafnum); in SV_Multicast()
233 area2 = CM_LeafArea (leafnum); in SV_Multicast()
/dports/games/alienarena/alienarena-7.66/source/qcommon/
H A Dcmodel.c829 if (leafnum < 0 || leafnum >= numleafs) in CM_LeafContents()
836 if (leafnum < 0 || leafnum >= numleafs) in CM_LeafCluster()
844 int CM_LeafArea (int leafnum) in CM_LeafArea() argument
846 if (leafnum < 0 || leafnum >= numleafs) in CM_LeafArea()
848 return map_leafs[leafnum].area; in CM_LeafArea()
1383 leaf = &map_leafs[leafnum]; in CM_TraceToLeaf()
1417 leaf = &map_leafs[leafnum]; in CM_TestInLeaf()
1997 int leafnum; in CM_HeadnodeVisible() local
2003 leafnum = -1-nodenum; in CM_HeadnodeVisible()
2028 int leafnum; in CM_inPVS() local
[all …]
/dports/games/alienarena-data/alienarena-7.66/source/qcommon/
H A Dcmodel.c829 if (leafnum < 0 || leafnum >= numleafs) in CM_LeafContents()
836 if (leafnum < 0 || leafnum >= numleafs) in CM_LeafCluster()
844 int CM_LeafArea (int leafnum) in CM_LeafArea() argument
846 if (leafnum < 0 || leafnum >= numleafs) in CM_LeafArea()
848 return map_leafs[leafnum].area; in CM_LeafArea()
1383 leaf = &map_leafs[leafnum]; in CM_TraceToLeaf()
1417 leaf = &map_leafs[leafnum]; in CM_TestInLeaf()
1997 int leafnum; in CM_HeadnodeVisible() local
2003 leafnum = -1-nodenum; in CM_HeadnodeVisible()
2028 int leafnum; in CM_inPVS() local
[all …]
/dports/games/openjk/OpenJK-07675e2/codemp/qcommon/
H A Dcm_test.cpp93 int leafnum; in CM_StoreBrushes() local
98 leafnum = -1 - nodenum; in CM_StoreBrushes()
100 leaf = &cmg.leafs[leafnum]; in CM_StoreBrushes()
206 int leafnum; in CM_PointContents() local
225 leafnum = CM_PointLeafnum_r (p, 0, local); in CM_PointContents()
226 leaf = &local->leafs[leafnum]; in CM_PointContents()
236 leafnum = CM_PointLeafnum_r (p, 0, &cmg); in CM_PointContents()
237 leaf = &local->leafs[leafnum]; in CM_PointContents()
/dports/games/netradiant/netradiant-20150621-src/tools/quake2/q2map/
H A Dqvis.c181 void ClusterMerge( int leafnum ){ in ClusterMerge() argument
195 leaf = &leafs[leafnum]; in ClusterMerge()
211 if ( uncompressed[leafnum >> 3] & ( 1 << ( leafnum & 7 ) ) ) { in ClusterMerge()
215 uncompressed[leafnum >> 3] |= ( 1 << ( leafnum & 7 ) ); in ClusterMerge()
219 memcpy( uncompressedvis + leafnum * leafbytes, uncompressed, leafbytes ); in ClusterMerge()
224 Sys_FPrintf( SYS_VRB, "cluster %4i : %4i visible\n", leafnum, numvis ); in ClusterMerge()
236 dvis->bitofs[leafnum][DVIS_PVS] = dest - vismap; in ClusterMerge()
/dports/games/gtkradiant/GPL/GtkRadiant/tools/quake2/q2map/
H A Dqvis.c184 void ClusterMerge (int leafnum) in ClusterMerge() argument
199 leaf = &leafs[leafnum]; in ClusterMerge()
214 if (uncompressed[leafnum>>3] & (1<<(leafnum&7))) in ClusterMerge()
217 uncompressed[leafnum>>3] |= (1<<(leafnum&7)); in ClusterMerge()
221 memcpy (uncompressedvis + leafnum*leafbytes, uncompressed, leafbytes); in ClusterMerge()
226 Sys_FPrintf( SYS_VRB, "cluster %4i : %4i visible\n", leafnum, numvis); in ClusterMerge()
237 dvis->bitofs[leafnum][DVIS_PVS] = dest-vismap; in ClusterMerge()

123456789