Eric Wasylishen
dbbe2290a7
testmaps: commit .json of tiny test maps
2021-10-06 17:14:28 -06:00
Eric Wasylishen
7cf1107f83
testmaps: commit .json of tiny test maps
2021-10-06 17:09:52 -06:00
Eric Wasylishen
9b19828530
qbsp: avoid triggering MSVC std::vector access bounds check
...
even though we're just taking the address with &, face->edges[face->w.size()]
was accessing an out-of-bounds element
2021-10-06 16:44:14 -06:00
Eric Wasylishen
0d06489016
qbsp: change HashVec to inline (fixing macOS build)
2021-10-06 16:38:24 -06:00
Jonathan
aa2a94e0a7
Uninitialized values aren't constexpr, changing these default constructors to inline
2021-10-06 03:43:30 -04:00
Jonathan
16d3bcc7c7
Revert "clang /macOS: un-constexpr things that were erroring"
...
This reverts commit 33745c3cb8 .
Value-initialize v which removes the need for the bottom `if constexpr` expression.
2021-10-06 03:42:46 -04:00
Eric Wasylishen
a84de6a2d6
csg4.cc: don't use alloca inside loop
...
it's crashing in release builds on macOS..
not sure exactly why, but it's also leaking stack
since none of them are freed until the function exits
2021-10-06 01:02:03 -06:00
Eric Wasylishen
22145327e6
qbsp: fix use-reference-after-vector-resize
2021-10-06 00:19:47 -06:00
Eric Wasylishen
cb0c97e163
test_common.cc: fix build
2021-10-05 23:43:49 -06:00
Eric Wasylishen
097f033eb8
testqbsp: fix build
2021-10-05 23:41:43 -06:00
Eric Wasylishen
fd28067b5c
fix gcc errors about reference to temporary
2021-10-05 23:28:33 -06:00
Eric Wasylishen
33745c3cb8
clang /macOS: un-constexpr things that were erroring
...
neither clang nor gcc like the qvec(Args..) constructor
being constexpr.
GCC's error says:
error: member ‘qvec<3, double>::v’ must be initialized by mem-initializer in ‘constexpr’ constructor
2021-10-05 23:18:52 -06:00
Eric Wasylishen
c54fea1e87
qbsp: face_t: use a std::vector for edges
...
shared_ptr of C arrays is not working on macOS,
but std::vector is also more correct semantically
2021-10-05 23:15:43 -06:00
Eric Wasylishen
07b24cce79
qvec: fix mat * mat on clang/gcc
2021-10-05 23:12:02 -06:00
Jonathan
cb9d90744f
More constexpr
2021-10-05 23:49:15 -04:00
Jonathan
75bcccada1
Fix more unused value warnings
...
Fix operator >= and <= for tuple of arrays
2021-10-05 23:40:40 -04:00
Jonathan
e72934de81
Hopefully resolve clang warnings here now
...
Fix iterator wrapper
Fix >= <= tuple<T&> operators
2021-10-05 23:24:05 -04:00
Jonathan
ca0111ce5d
Fix missing unordered_map
...
Maybe fix for tons of -Wunused-value
2021-10-05 23:00:13 -04:00
Jonathan
a2edc09018
Resolve GCC wanting `template` before emplacements
2021-10-05 22:54:25 -04:00
Jonathan
b4afc32e2b
Fix winding_edges using old get() name
...
Another attempted fix at VA_ARGS
Fix missing typename prefix
2021-10-05 22:44:13 -04:00
Jonathan
f4fc8bc72b
Remove unused functions, fix math issues
...
MacOSX potential fix for __VA_ARGS__
2021-10-05 22:35:30 -04:00
Jonathan
37cb535f1a
implement MSVC-style setp
2021-10-05 22:05:35 -04:00
Jonathan
2c9b59103f
Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup
2021-10-05 21:38:19 -04:00
Jonathan
81b7fbf916
Fix MSVC extension for setp
...
Fix PointsAlongLine
2021-10-05 21:38:04 -04:00
Eric Wasylishen
f7ebe386f1
CI: require macOS 10.15 for std::filesystem
2021-10-05 18:24:11 -06:00
Eric Wasylishen
899f127806
CI: use Ubuntu 20.04 (for std::filesystem)
2021-10-05 18:21:44 -06:00
Eric Wasylishen
dc66c4d239
Revert change to JSON submodule commit
2021-10-05 18:07:53 -06:00
Eric Wasylishen
cbcf6c6be8
Trigger GitHub Actions
2021-10-05 18:04:39 -06:00
Eric Wasylishen
7b33b12146
Merge pull request #320 from Paril/qbsp-contentflags
...
Qbsp contentflags
2021-10-05 17:46:25 -06:00
Jonathan
52839d4e7f
Run clang-format pass
2021-10-05 15:54:06 -04:00
Jonathan
4ad798e29c
Fix origin brushes
...
Fix merge stuff from qbsp-contentflags
2021-10-05 15:50:18 -04:00
Jonathan
7590230111
Merge remote-tracking branch 'remotes/origin/qbsp-contentflags' into type-cleanup
...
# Conflicts:
# bspinfo/bspinfo.cc
# common/bspfile.cc
# include/common/bspfile.hh
# qbsp/brush.cc
# qbsp/csg4.cc
# qbsp/portals.cc
# qbsp/qbsp.cc
# qbsp/solidbsp.cc
# qbsp/surfaces.cc
# qbsp/writebsp.cc
# vis/vis.cc
2021-10-05 01:21:16 -04:00
Eric Wasylishen
a91bc56aaa
qbsp: outside.cc: match original behaviour
2021-10-05 01:07:26 -04:00
Jonathan
0833d84a7a
Calculate tangents and bitangents (need to clean this up)
...
Implement formatters for qvec
Add -nolighting, which skips all non-lightstyled lights
2021-10-05 01:07:13 -04:00
Eric Wasylishen
997a039b65
vis: fix test failure with Q1
2021-10-04 21:21:53 -06:00
Eric Wasylishen
5b62f61b29
qbsp: revert contents handling to be closer to master
2021-10-04 20:39:47 -06:00
Eric Wasylishen
d56418ae95
Merge remote-tracking branch 'origin/master' into qbsp-contentflags
2021-10-04 20:38:49 -06:00
Eric Wasylishen
a79772d988
testmaps: fix stale hash for qbsp_func_detail_illusionary_plus_water.map
2021-10-04 20:25:26 -06:00
Eric Wasylishen
60d9d4daf4
bspinfo: also output face vertices
2021-10-04 19:53:03 -06:00
Eric Wasylishen
a7c3e70766
testmaps: add qbsp_func_detail_illusionary_plus_water.map
2021-10-04 19:27:24 -06:00
Eric Wasylishen
590dd47890
bspinfo: export more lumps to JSON (faces, edges, leaffaces, surfedges)
2021-10-04 18:17:52 -06:00
Jonathan
3b1347a812
Add NO_ITERATOR_DEBUG for debug mode
2021-10-04 05:56:46 -04:00
Eric Wasylishen
ee8ee57cc1
qbsp: delete brushbsp.cc
2021-10-03 20:13:21 -06:00
Eric Wasylishen
1ed4dc71ad
Merge remote-tracking branch 'origin/master' into qbsp-contentflags
2021-10-03 20:04:19 -06:00
Eric Wasylishen
640befb4dc
qbsp: write portals as binary to avoid line ending differences
2021-10-03 19:47:00 -06:00
Eric Wasylishen
d132a44dbc
qbsp3: remove unused code
2021-10-03 19:41:56 -06:00
Eric Wasylishen
baf1bdf732
testmaps: also check hashes of .prt files. run vis processes in parallel.
2021-10-03 19:26:40 -06:00
Eric Wasylishen
b01e9ef7b1
testmaps: add a new simple func_detail testmap
2021-10-03 19:19:11 -06:00
Eric Wasylishen
2560603f9b
qbsp: csg4.cc: bring closer to original behaviour
2021-10-03 12:32:50 -06:00
Eric Wasylishen
f0d12fc8f3
qbsp: Brush_LoadEntity: bring closer to the original code
2021-10-03 12:02:52 -06:00