15 Commits

Author SHA1 Message Date
Lioncache 00f3bef71a IOutputStream: Migrate over to sized names
Makes data type handling more explicit and less verbose (e.g. with
WriteLongLong -> WriteS64)
2026-01-12 15:12:54 -05:00
Lioncache b4f413e935 IInputStream: Rename accessors to specify data size
Gets rid of the silly "Long" usage for 32-bit sizes
2026-01-12 14:14:47 -05:00
Lioncache a3f5bb5f81 CRandom: Make gpGlobalRandom internally linked
We can also just construct it as a regular copyable instance instead of
doing a file-scope heap allocation.
2026-01-11 11:58:22 -05:00
Lioncache 8e868613cf CColor: Rename ToLongRGBA/ToLongARGB -> ToRGBA/ToARGB
Avoids encoding 'long' into the type name which is different size-wise
depending on the platform.
2026-01-11 09:32:00 -05:00
Lioncache af10c8775a CColor: Minor tidying up 2026-01-11 09:28:57 -05:00
Lioncache 413ebfc7c2 CColor: Convert min(max()) sequence to std::clamp
Same behavior, more straightforward
2026-01-11 09:21:48 -05:00
Lioncache d4fe062c8d CColor: Move long helpers over to uint32_t
Same behavior, but without wonky data size changes on *nix
2025-12-23 16:59:54 -05:00
Lioncache d6640792ec General: Cleanup
Mainly header hygeine and overload specifiers.

Also greatly reduces the amount of copying going on with math
primitives.
2025-12-17 15:41:49 -05:00
Lioncash dbffde1650 General: Remove non-constexpr constants
Now that we've migrated off the non-constexpr constants, we can
eliminate the remaining ones.
2020-06-16 22:53:28 -04:00
Lioncash ab3be48ac8 CColor: Make constexpr capable 2020-06-09 07:15:21 -04:00
Jack Andersen 5735e32538 Windows fixes 2019-05-25 20:43:05 -10:00
Jack Andersen 001aca55a7 Fixes for Linux build 2019-05-24 21:49:56 -10:00
Aruki 5c3bfbe57f Added CRandom class, fixed bug with binary data serializing incorrectly 2019-02-02 17:30:36 -07:00
Aruki 252e4c7e96 Merged in Tropical Viewer changes 2018-12-09 02:38:38 -07:00
Aruki 4f9cf8a06e Initial commit; files moved in from Prime World Editor w/ minor cleanup 2018-12-08 23:44:41 -07:00