Phillip Stephens
8410394d4b
Add toRGBA and toRGB5A3 to CColor
2022-05-13 23:46:19 -07:00
Phillip Stephens
e9c0fe7a6e
Remove athena types
2022-02-27 20:46:10 -08:00
Luke Street
ec125acf29
CColor: Fix COLOR macro (again)
2021-10-25 22:54:47 -04:00
Luke Street
6e865b656a
MSVC build fix for COLOR macro
2021-10-25 19:17:25 -04:00
Lioncash
5520001117
General: Mark file-scope constexpr variables as inline
...
Allows the compiler to unify all usages of these constants down to a
single address if they're ODR used, rather than creating an individual
copy within each translation unit.
Unfortunately all file-scope variables don't have inline implied for
them by default (only for static class member variables).
Shrinks the size of the emitted binary a little bit.
2020-04-19 03:22:13 -04:00
Lioncash
81f9b4a4ee
General: Mark functions as nodiscard where applicable
...
Given this aims to be a general purpose math library for use in various
other libraries applications for axiodl, we can annotate functions that
return by value or reference with [[nodiscard]] where it's very obvious
that not making use of the return value is a bug.
This allows the compiler to diagnose and emit warnings for these API
misuses at compile-time, preventing silent bugs from occurring.
Any cases where not using the return value is desirable may still be
casted to void in order to silence warnings.
2020-03-04 03:07:54 -05:00
Phillip Stephens
35127116f8
Merge pull request #9 from lioncash/docs
...
General: Amend documentation comments
2019-09-03 19:52:56 -07:00
Lioncash
9058b6bbcc
CColor: Use using where applicable
...
We can also simplify RGBA32's declaration. This also allows the type to
be forward declared.
2019-09-03 14:11:56 -04:00
Lioncash
53ac7d96b0
General: Amend documentation comments
...
Silences a few trivial -Wdocumentation warnings
2019-09-03 14:05:27 -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
c5d90a5d5e
Make simd_floats use std::array for storage
2019-07-20 22:42:27 -10:00
Jack Andersen
6c13d089fe
CColor hash
2019-05-07 17:49:27 -10:00
Jack Andersen
2edc75f793
CColor clamp for all arithmetic ops
2019-03-23 22:06:25 -10:00
Jack Andersen
b854e76dc9
constexpr refactor
2019-02-23 21:15:32 -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
20603da60d
Convert to pragma once
2018-10-06 17:39:40 -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
10d389ffda
Huge compile performance refactor
2017-12-28 22:06:22 -10:00
Jack Andersen
50f47d6455
Remove SSE4 runtime checks
2017-12-15 15:32:06 -10:00
Jack Andersen
bad3038132
Add operator[] asserts
2017-11-23 22:21:18 -10:00
Jack Andersen
5db81ca788
Add CColor::rgbDot()
2017-04-13 09:27:59 -10:00
Phillip Stephens
17a42c15e2
Add static ReadRGBABig to CColor
2016-12-22 12:35:29 -08:00
Jack Andersen
64a88b3148
Windows Fixes
2016-09-18 15:03:37 -10:00
Jack Andersen
f370a2c4e6
Add CColor Athena writer helpers
2016-09-16 09:54:36 -10:00
Jack Andersen
7aa5ccf0c7
Invert logic on CAABox::intersects
2016-08-13 09:35:41 -10:00
Jack Andersen
b15e66a710
Bulk-run of clang-format
2016-07-08 08:42:42 -10:00
Jack Andersen
9762710b85
Add color self-clamp
2016-04-03 19:01:27 -10:00
Jack Andersen
33c357ecc6
ZE_ATHENA_TYPES readers are now explicit-endian
2016-03-13 14:57:31 -10:00
Jack Andersen
a76d43d5df
Humungous refactor
2016-03-04 13:03:26 -10:00