Commit Graph

98 Commits

Author SHA1 Message Date
Phillip Stephens 316d937f11 Minor compile fixes and corrections 2023-10-22 17:18:03 -07:00
Luke Street e9ec10a382 Add simd_none implementation 2022-08-03 18:15:45 -04:00
Phillip Stephens 8410394d4b
Add toRGBA and toRGB5A3 to CColor 2022-05-13 23:46:19 -07:00
Luke Street 8e4dfb022a CMatrix3f: Remove normalize from CQuaternion ctor 2022-05-12 12:05:29 -04:00
Phillip Stephens fc33e18b4a
constexpr fixes 2022-03-12 09:03:27 -08:00
Phillip Stephens 82a3a0def9
Fix floorPowerOfTwo 2022-03-02 23:50:07 -08:00
Luke Street b3806c03a5 Fixes for MSVC arch detection & SIMD compilation 2021-02-15 21:03:44 -05:00
Luke Street 566db657d9 Add NEON support & more constexpr 2020-10-20 02:25:44 -04:00
Luke Street f99184556a CVector3f/CVector2f: Fix clamp in getAngleDiff 2020-04-19 21:01:49 -04:00
Phillip Stephens c70243ff32
Merge pull request #21 from encounter/sse4a
Add SSE4a CPUID check
2019-12-10 20:48:34 -08:00
Luke Street c3671245e2 Add SSE4a CPUID check 2019-12-10 17:09:24 -05:00
Lioncash 9409825ace CQuaternion: Remove unnecessary local in slerp()
We can turn this assignment into a direct return expression, tidying up
the code a little bit.
2019-09-20 21:01:17 -04:00
Lioncash 9f0c1e8218 CColor: Correct luminance setting within toHSL()
The function wasn't setting the luminance out reference, this corrects
that.
2019-09-05 21:27:37 -04:00
Lioncash 53c6c115fe CColor: Use initializer_list version of std::min/std::max where applicable
Same behavior, but less verbose.
2019-09-05 21:21:35 -04:00
Lioncash 0e516b9f0b CFrustum: Use std::array where applicable
Makes the array stronger-typed. We can also use it to convert a few
loops into algorithms.
2019-09-03 14:29:36 -04:00
Lioncash f6854d8e82 General: Mark member functions as const where applicable
These don't modify internal member state, so they can be const.
2019-09-01 21:53:57 -04:00
Lioncash dafc850598 zeus: Amend inclusions
Trims out unused headers and ensures the necessary includes are
included.
2019-09-01 04:30:53 -04:00
Jack Andersen 48073c783b Move some quaternion functions in-header 2019-06-14 14:38:56 -10:00
Jack Andersen c81eb93b6d Better CMake dependency handling 2019-06-11 16:04:52 -10:00
Jack Andersen 92733a3bb7 Fix some compilation warnings 2019-04-06 19:01:22 -10:00
Jack Andersen 617875531a Implement CAABox::getTri 2019-04-02 18:30:18 -10:00
Jack Andersen cb4ede8097 Proper getAngleDiff implementations 2019-03-09 23:14:23 -10:00
Jack Andersen b854e76dc9 constexpr refactor 2019-02-23 21:15:32 -10:00
Jack Andersen e32914074a CAABox intersectRadius fixes 2019-02-07 21:56:15 -10:00
Jack Andersen 841c876a66 Add CAABox::projectedPointTest 2019-01-19 20:41:51 -10:00
Jack Andersen 4352f0d4a9 Add identity transform constant 2018-12-14 20:29:14 -10:00
Jack Andersen 7df9f9b7ec Correct CVector3f::slerp implementation 2018-12-12 21:36:29 -10:00
Jack Andersen e172225845 New code style refactor 2018-12-07 19:23:50 -10:00
Jack Andersen e8dfecbb6e SIMD refactor 2018-12-07 15:16:50 -10:00
Jack Andersen d881e58f62 Fix COBBox::calculateAABox 2018-11-18 15:19:14 -10:00
Jack Andersen a427e0a8a2 Fix lookAt 2018-11-17 17:59:53 -10:00
Jack Andersen 01019f9602 Fix COBBox intersection test 2018-11-08 14:25:26 -10:00
Jack Andersen b54121ed9c Various bug fixes 2018-06-21 14:33:34 -10:00
Jack Andersen 17a501f339 Remove unneeded standard math functions 2018-06-02 20:10:58 -10:00
Jack Andersen 0756f4ec76 add CColor::writeRGBA8 2018-03-27 22:07:14 -10:00
Jack Andersen c466fd21d1 Add highestFeature check to cpuid users 2018-01-01 18:23:04 -10:00
Jack Andersen 10d389ffda Huge compile performance refactor 2017-12-28 22:06:22 -10:00
Jack Andersen 439da78fa6 Support for detecting AVX and AVX2 ISA 2017-12-26 14:47:31 -10:00
Jack Andersen b438e30060 CQuaternion fixes 2017-12-15 14:16:40 -10:00
Jack Andersen b359ff96d0 Remove SSELegacy.cpp and add validateCPU() 2017-12-11 16:03:39 -10:00
Jack Andersen 5b3ab7ac22 Fix frustum culling 2017-11-27 16:46:40 -10:00
Jack Andersen f370b22b3b CEulerAngle Quaternion constructor fix 2017-11-17 17:34:53 -10:00
Jack Andersen de6dc86596 Fix CQuaternion::transform and CNUQuaternion 2017-11-11 19:13:05 -10:00
Jack Andersen 3d377124c1 Implement CQuaternion::angleFrom() 2017-10-28 20:21:23 -10:00
Jack Andersen 0e792b213a Minor API tweaks 2017-10-14 19:24:17 -10:00
Jack Andersen 16985b0e9b Add CPlane::rayPlaneIntersection 2017-09-17 17:02:19 -10:00
Jack Andersen 13949b249e Additional quaternion functions 2017-07-13 19:12:21 -10:00
Jack Andersen 21b0eb15c8 Add CQuaternion::slerpShort 2017-05-05 19:21:14 -10:00
Jack Andersen 85e340855a Add Matrix3x3 to euler anges constructor 2017-04-18 13:40:12 -10:00
Jack Andersen c50a319a39 Add CEulerAngles representation 2017-03-19 19:06:53 -10:00