ericw-tools/include/common
Jonathan eaa86c71c6
Q2BSP + QBSP (#313)
* Add QBSP - the BSP2-esque variant to Q2BSP - to bspinfo, and all of its accompanying structures.

* pass around ident, since Q2 needs it - admittedly it's a bit ugly, but it works for now.
conversion for QBSP

* Fix light

* _qbsp_ -> _qbism_

* Introduced bspversion_t, a struct that holds pertinent information about different BSP versions and also acts as a tagged pointer type for direct comparisons. This makes a lot of code paths simpler. I'm not entirely set on the wordings or usages yet, and maybe we can stuff boolean flags inside of them for different behaviors (for instance Q2, QBism and HL would have the "colored lightmap" boolean set to true, which replaces the check-for-all-three in the lightmapper)
Swapped arguments to ConvertBSPFormat to have the conversion target last instead of first
Finished rename of qbsp -> qbism
Tested:
 - bspinfo on various BSPs I had laying around (Q1, Q2, Qbism)
 - bsputil converting between Q2 and Qbism, and that they loaded in engine/roundtripped properly
Not tested:
 - vis/rad on anything major (I still can't run rad due to embree being weird)
 - bsputil conversion of Q1-esque maps
2021-08-23 09:56:33 -06:00
..
aabb.hh common: make float/double versions of aabb3 2017-04-22 15:11:41 -06:00
bspfile.hh Q2BSP + QBSP (#313) 2021-08-23 09:56:33 -06:00
bsputils.hh common: revert Face_Miptex change, it was breaking reading of 2021-01-31 01:27:01 -07:00
cmdlib.hh common: assert(0) on Q_assert failure for better debugger experience 2021-08-22 23:27:05 -06:00
entdata.h common: fix build failure 2021-03-23 21:17:09 -06:00
lbmlib.hh cleanup: remove "byte" typedef 2021-02-07 14:02:35 -07:00
log.hh all: finish c++ification 2016-10-17 19:52:17 -06:00
mathlib.hh common: fix build of bsputils.cc with double == vec_t 2021-08-22 15:12:19 -06:00
mesh.hh common, light, vis: change from bsp2_t to mbsp_t 2017-10-01 22:32:20 -06:00
octree.hh Quake 2 support: area lights, palette/texture loading, transparent/sky/fence face flags. 2018-05-08 15:50:01 +03:00
polylib.hh Quake 2 support: area lights, palette/texture loading, transparent/sky/fence face flags. 2018-05-08 15:50:01 +03:00
qvec.hh decompile: restore coplanar faces 2021-02-06 16:19:15 -07:00
scriplib.hh all: finish c++ification 2016-10-17 19:52:17 -06:00
threads.hh all: finish c++ification 2016-10-17 19:52:17 -06:00
trilib.hh all: finish c++ification 2016-10-17 19:52:17 -06:00
wadlib.hh all: finish c++ification 2016-10-17 19:52:17 -06:00