summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/common/bounds.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/common/bounds.cpp')
-rw-r--r--3rdparty/bgfx/examples/common/bounds.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/3rdparty/bgfx/examples/common/bounds.cpp b/3rdparty/bgfx/examples/common/bounds.cpp
index 96a775024d2..6afd5755d0c 100644
--- a/3rdparty/bgfx/examples/common/bounds.cpp
+++ b/3rdparty/bgfx/examples/common/bounds.cpp
@@ -182,6 +182,12 @@ void aabbExpand(Aabb& _aabb, float _factor)
_aabb.m_max[2] += _factor;
}
+void aabbExpand(Aabb& _aabb, const float* _pos)
+{
+ bx::vec3Min(_aabb.m_min, _aabb.m_min, _pos);
+ bx::vec3Max(_aabb.m_max, _aabb.m_max, _pos);
+}
+
uint32_t aabbOverlapTest(const Aabb& _aabb0, const Aabb& _aabb1)
{
const uint32_t ltMinX = _aabb0.m_max[0] < _aabb1.m_min[0];
nius 6 (V132F) [Jorge Silva] Lethal Crash Race / Bakuretsu Crash Race (set 2, alternate sound ROM) [Jorge Silva] - ohmygod.cpp: used finder for memory bank and other minor cleanups * Fix several issues in DC-based HW (#9150) Angelo Salese2022-01-171-2/+5 | | | | | | | | | | | | | | | | | | | | | | | | - Streamlined logging across chips to use logmacro.h, removed popmessages and printfs in production code; - Add missing include guards in header files; - split Atomiswave into own file from naomi.cpp (dc_atomiswave.cpp); - powervr2.cpp: YUV pitch follows U size, fixes #8999 - powervr2.cpp: move Elan related stuff back into naomi2_state; - naomi.cpp: support for player 2 keyboard inputs; - naomi.cpp: add proper inputs to alpilot/alpilotj and sstrkfgt; - naomi.cpp: hookup lightgun for deathcox; - naomi.cpp: make G2-DMA timings slightly more accurate (fixes sfz3ugd silent BGMs regression caused by implicit insta-DMAs) - dc_g2if.cpp: wrote a device for G2 DMA interface, fixes #9000 ; - dc_g2if.cpp: add E1/E2/DD channels thru template, add area protection, add illegal address and overflow exceptions (fixes loopchk g2 bus tests 0302 and 0303) - aica.cpp: $2814 CA reads doesn't need shifting, fixes ADX repeating sample/hang bugs in many entries [Angelo Salese, MetalliC]; - powervr2.cpp: make ISP/TSP irq to be slower, fixes regression bug with Capcom fighters having frame hiccups [David Haywood, Angelo Salese] - dc_atomiswave.cpp: converted aw_modem_r/_w to 32-bit, added 3p/4p inputs to ggisuka, expose EXID to an input/output ioports for future extensions; - dc_atomiswave.cpp: extend xtrmhnt2 ALL.Net hack for -drc, move around state machine to derive ALL.Net external device mapping instead of driver_init fn, demote to MUP for obvious reasons; - dc_atomiswave: add Area 1 mirrors, fix maxspeed title screen animation; - [MT#8143](https://mametesters.org/view.php?id=8143) is fixed New NOT_WORKING software list additions --------------------------------------- dc.xml: DC Checker for Repair v2.05R (World), Loop Checker v1.00 (World), GD Drive Repair Program v0.1 (World) [Hidden Palace] * New machines marked as NOT_WORKING Ivan Vangelista2022-01-151-0/+1 | | | | | ---------------------------------- Gumball Rally [Museo del Recreativo, Phil Bennett] * New working clones Ivan Vangelista2022-01-141-2/+0 | | | | | | | ------------------ Rastan Saga (bootleg, Japan Rev 1, earlier code base) [Fabrice Arzeno] timeplt.cpp: added a note about a spaceplta PCB with a char ROM taken from the original [Trol] * Fixed arcade build; added missing newline. Robbbert2022-01-081-0/+1 | * New NOT_WORKING machine (#9052) ClawGrip2022-01-011-0/+1 | | | | | | * New NOT_WORKING machine ----------------------------- Fun-E-Ball [Museo del Recreativo] * New working clones Ivan Vangelista2021-12-221-2/+0 | | | | | | | ------------------ Chouji Meikyuu Legion (Japan ver 1.05, set 2) [system11] - taito_o.cpp: merged everything in the driver file * Atari Lynx emulation updates (#8931) cam9002021-12-141-0/+1 | | | | | | | | | | | | * Atari Lynx emulation updates - Use memory_view for address mapping - Support variable framerate, Fix screen overscan (102 visible + 3 blank lines) - Fix collision handling (possibly copy-paste error?) - Reduce unnecessary shared pointers, Some duplications - Use inlines values for bit flags - Add support for variable page size for cartridge, AUDIN pin for bankswitch - Add hardware notes, Initialize values - Fix namings, Fix spacings, Use shorter/correct type values - Move lynx sound functions into device/sound/lynx.*, Fix sound pitch (input clock related) * New NOT_WORKING machines (#8955) ClawGrip2021-12-141-0/+1 | | | | | | | | | * New NOT_WORKING machines --------------------------- Master Crane (set 1) [Israel León (Retrolover), ClawGrip] New NOT_WORKING clones --------------------------- Master Crane (set 2) [Israel León (Retrolover), ClawGrip] * Research into thoop and squash 'refresh rate' protection [Victor Fernandez ↵ David Haywood2021-12-141-1/+1 | | | | | | (City Game), Peter Ferrie, David Haywood] (#8916) * Research into thoop and squash 'refrsh rate' protection [Victor Fernandez (City Game), Peter Ferrie, David Haywood] - prevents freeze when dying in stage 4 of Thunder Hoop, and bad text on continue in Squash * ichiban.cpp, royalmah.cpp: merged the former into the latter. Also some ↵ Ivan Vangelista2021-12-131-1/+0 | | | | tagmap cleanup and configured banking in royalmah.cpp * lancelot: Split off to its own driver. Robbbert2021-12-111-0/+1 | * Hopefully fix arcade build. Robbbert2021-12-031-0/+4 | * New NOT_WORKING machine (#8927) ClawGrip2021-12-021-0/+1 | | | | | New NOT_WORKING machine --------------------------------- Coche Bully [ClawGrip] * Fixed a few coverity errors, several of which are real bugs. Vas Crabb2021-12-021-2/+0 | * Various cleanups. Vas Crabb2021-12-021-4/+0 | * stv: moved video into video/saturn.cpp to remove possible circular ↵