Eric Wasylishen
cd7968322f
docs: changelog updates
2025-02-06 23:00:07 -07:00
Eric Wasylishen
3b3802faf7
common: use non-throwing std::filesystem::equivalent()
2025-02-06 21:13:57 -07:00
Eric Wasylishen
ebe157cb43
cleanup: get_hull_sizes(): use std::span instead of std::initializer_list
2025-02-04 19:55:39 -07:00
Eric Wasylishen
ee441a12a9
common: better qmat natvis
2025-02-02 13:27:59 -07:00
Eric Wasylishen
c65898dfd9
mapfile: texinfo_quake2_t::flags should be int, not surfflags_t
2025-02-01 23:55:15 -07:00
Eric Wasylishen
d6ad1606b4
cleanup: SurfFlagsForEntity: take epairs
2025-02-01 18:08:58 -07:00
Eric Wasylishen
fe42faf15b
common: surfflags_t: use bitfields for the bools
...
surfflags_t 160 -> 152 bytes
2025-02-01 16:25:51 -07:00
Eric Wasylishen
bf6710e625
common: surfflags_t: convert is_hintship to function that checks for Q2_SURF_SKIP
2025-02-01 16:17:26 -07:00
Eric Wasylishen
f930305695
common: surfflags_t: convert is_hint to function that checks for Q2_SURF_HINT
2025-02-01 16:04:08 -07:00
Eric Wasylishen
429921868a
common: surfflags_t: convert is_nodraw to function that checks for Q2_SURF_NODRAW
2025-02-01 15:53:37 -07:00
Eric Wasylishen
6f1b4252d2
common: split surfflags_t::native into native_q1 and native_q2
2025-02-01 14:47:50 -07:00
Justin
2bbcaed34b
have notriggermodels output mins/maxs for hull 0 ( #446 )
2025-01-31 19:01:54 -07:00
Eric Wasylishen
fc003c64cd
cleanup: use more default comparison
2025-01-28 21:56:49 -07:00
Eric Wasylishen
21a665110c
imglib: error if trying to use a palette but none is loaded
2025-01-28 21:43:03 -07:00
Eric Wasylishen
c06dbb0693
tests: add a texture case sensitivity test
2025-01-28 21:42:13 -07:00
Eric Wasylishen
5a94c671a2
tests: fix broken test after img::clear() change
2025-01-24 20:34:51 -07:00
Eric Wasylishen
41ac385840
docs: note that dmodel::origin is apparently unused
2025-01-23 23:49:09 -07:00
Eric Wasylishen
b66e771056
readme updates
2025-01-23 23:47:48 -07:00
Eric Wasylishen
887ba83151
tests: clear fs, imglib between tests
2025-01-23 23:47:32 -07:00
Eric Wasylishen
de1e130e4f
tests: better documentation and test for areaportals
2025-01-20 00:16:56 -07:00
Eric Wasylishen
b1ee327092
refactor: replace EXPECT_VECTORS_UNOREDERED_EQUAL with gtest matchers
2025-01-19 23:18:28 -07:00
Eric Wasylishen
a6c7a18cb8
ci: update to macos-14
...
this should give us xcode 16, with better c++20 support (e.g. 3-way comparison on std::optional)
2025-01-01 19:15:50 -07:00
Eric Wasylishen
4c1d4af2ed
cleanup: use spaceship operator where possible
2025-01-01 16:57:21 -07:00
Eric Wasylishen
bbe39c7c82
bspfile: make conversion operators/constructors explicit
2024-12-27 17:07:39 -07:00
Eric Wasylishen
ca26b0e669
style: use twosided<T> instead of std::array<T,2>
2024-12-25 20:03:51 -07:00
Eric Wasylishen
bbd5bc7ff8
qbsp: replace old .prt writing code with WritePortalfile
2024-12-15 22:34:40 -07:00
Eric Wasylishen
2b99fa3a62
common/prtfile: add WritePortalfile (unused currently)
2024-12-14 23:33:13 -07:00
L-P
d0788ac01f
Add _hulls property to allow a bmodel to set for which hulls it should have clipnodes ( #442 )
...
* Add _hulls bmodel property
Whitelist hulls for which to generate clipnodes.
* Fix _hulls when hull 0 is omitted
Add test
---------
Co-authored-by: Eric Wasylishen <ewasylishen@gmail.com>
2024-12-09 00:06:26 -07:00
Eric Wasylishen
0f1a7186d6
qbsp: never merge across liquids, deprecate -nomergeacrossliquids
...
we've had complaints from both Q1 and Q2 users with water caustics
leaking out from underwater. This was an attempt to save a few faces,
seems it's not worth the trouble.
2024-12-07 19:47:16 -07:00
Eric Wasylishen
dabae0143f
tests: EXPECT_EQ -> ASSERT_EQ
2024-12-07 14:19:27 -07:00
Eric Wasylishen
a17764a88f
lightpreview: add "view -> move camera to" menu item
2024-11-30 21:34:03 -07:00
Eric Wasylishen
d7eca5f317
cmdlib: fix broken Q_strcasecmp and Q_strncasecmp
...
string_view isn't null terminated, can't use C string functions
2024-11-29 00:15:54 -07:00
Eric Wasylishen
638076ffb2
bspinfo: fix not clearing between styles
...
from @Paril
2024-11-24 21:15:32 -07:00
Eric Wasylishen
dfa164ffce
qbsp: more func_illusionary_visblocker fixes..
...
fix illusionary_visblocker covered by func_detail_illusionary
2024-11-23 23:02:26 -07:00
Eric Wasylishen
a0953767a2
qbsp: more func_illusionary_visblocker fixes
...
See #441
- fix visblocker merging with detail_illusionary, by introducing a new content type
- fix _mirrorinside 0 not working on visblocker
2024-11-23 22:21:51 -07:00
Eric Wasylishen
4e11e3ebe1
qbsp: remove treating __TB_empty as skip
2024-11-23 10:39:30 -07:00
Eric Wasylishen
9d6ce6d83c
qbsp: fix func_illusionary_visblocker behaviour
...
- support liquid brushes (they are converted to mist - so empty contents for Q1)
- force _mirrorinside 1
Fixes #441
2024-11-20 20:19:34 -07:00
Eric Wasylishen
9f4cfb0c3d
cleanup: code formatting pass
2024-11-18 21:25:27 -07:00
Eric Wasylishen
8038b730e1
qbsp: fix func_illusionary_visblocker
...
Fixes #440
2024-11-18 21:19:41 -07:00
Eric Wasylishen
27c40b6255
tests: add q2_mist_aux_implicitly_detail.map test
2024-11-18 19:54:07 -07:00
Eric Wasylishen
178e04e0d5
bspfile: explain why AUX and MIST are forced to be detail
2024-11-17 23:01:56 -07:00
Eric Wasylishen
cdedc6220c
cleanup: remove some more const references to small objects
2024-11-17 22:08:44 -07:00
Eric Wasylishen
9f3927f1a7
cleanup: avoid unnecessary const int &
2024-11-17 21:58:40 -07:00
Eric Wasylishen
1337919805
cleanup: don't pass std::string_view by reference
...
by value is the same on MSVC, may be marginally better elsewhere
see:
https://quuxplusone.github.io/blog/2021/11/09/pass-string-view-by-value/
https://quuxplusone.github.io/blog/2021/11/19/string-view-by-value-ps/
2024-11-17 21:52:10 -07:00
Eric Wasylishen
9c016b0e3a
cleanup: don't pass float_type by reference
2024-11-17 21:40:41 -07:00
Eric Wasylishen
1c6c48426a
cleanup: don't pass float by reference (it's only 4 bytes)
2024-11-17 21:39:26 -07:00
Eric Wasylishen
4cffdc1cd2
cleanup: don't pass bool by reference
2024-11-17 21:37:17 -07:00
Eric Wasylishen
71933f2be1
cleanup: don't pass double by reference (it's only 8 bytes)
2024-11-17 21:34:54 -07:00
Eric Wasylishen
c755f47c03
cleanup: don't pass size_t by reference (it's only 8 bytes)
2024-11-17 21:26:27 -07:00
Eric Wasylishen
b8fdbe3d41
cleanup: don't pass contentflags_t by reference (it's only 8 bytes)
2024-11-17 21:23:09 -07:00