Sam Hocevar
6f84e24794
Remove all usage of lol::array in the standalone headers.
4 years ago
Sam Hocevar
c1aac56766
Replace lol::array with std::vector in aabb_tree.h.
4 years ago
Sam Hocevar
4446947aec
Use std::tuple for our custom dynamic arrays.
4 years ago
Sam Hocevar
ecc3aee6e1
Various Windows compilation fixes.
4 years ago
Sam Hocevar
d05eb96665
Improve standalone inclusion support.
4 years ago
Sam Hocevar
20f39ee086
Refactor arraynd class.
Use size_t instead of ptrdiff_t and reduce header usage.
4 years ago
Sam Hocevar
2235ce1635
Various compilation fixes.
4 years ago
Sam Hocevar
f65ab0fa1e
Fix Windows compilation.
4 years ago
Sam Hocevar
c696030648
Add <lol/base/lolunit.h> header for unit tests.
4 years ago
Sam Hocevar
02bb54bdf9
Refactor the color class.
This code is not of very good quality, but a few methods such as the
RGB/HSV/HSL/YUV conversions are still useful, so I’m deciding to keep
them for now.
4 years ago
Sam Hocevar
4b81463015
Fix some warnings reported by Visual Studio.
4 years ago
Sam Hocevar
71d9bc1ec8
Move math types to a separate types/ subdirectory.
4 years ago
Sam Hocevar
c042850637
Clean up bigint.h header.
4 years ago
Sam Hocevar
59a4b5bd0c
Clean up the half.h header and make it optional.
4 years ago
Sam Hocevar
38ee6b26e9
Use <stdint.h> instead of <cstdint>.
This is because <cstdint> is not guaranteed to expose C99 types to the
global namespace, and we don’t want to go through the hassle of using
each of them one by one.
4 years ago
Sam Hocevar
f0b8cfc6f2
Clean up the features.h header.
4 years ago
Sam Hocevar
655beda5bd
It’s 2020, use [[nodiscard]] unconditionally.
4 years ago
Sam Hocevar
fcc3757061
Use fallthrough attribute properly (using a trailing semicolon as an empty statement).
4 years ago
Sam Hocevar
2626ce4efe
Make more headers private and remove unnecessary #includes.
4 years ago
Sam Hocevar
5c7ef8d898
Update todo list.
4 years ago
Sam Hocevar
e1ef913daa
Make the “real” functions more generic. Not specialising them speeds up compilation.
4 years ago
Sam Hocevar
ca3fb5a4ba
Make the vector, matrix and transform-related classes header-only.
4 years ago
Sam Hocevar
f30c17f180
Fix bug in real::real(int64_t) caused by undefined behaviour.
4 years ago
Sam Hocevar
7a309a53d1
Various compilation fixes.
4 years ago
Sam Hocevar
f579dbc881
Minor header refactoring.
4 years ago
Sam Hocevar
29336e3d2f
math: quick fix for linking issues in the real class.
4 years ago
Sam Hocevar
0ba2833bd4
Make a lot of headers work independently.
4 years ago
Sam Hocevar
c45a494ad5
base: re-add the threading and getopt classes.
4 years ago
Sam Hocevar
8d5891b88a
math: clean up the polynomial.h header.
4 years ago
Sam Hocevar
a38dc4a104
base: add a proxy header for PEGTL.
4 years ago
Sam Hocevar
742bb53bdd
base: add a features.h header.
4 years ago
Sam Hocevar
80dafa8edf
math: clean up the Real class.
4 years ago
Sam Hocevar
bf2ea0744e
base: clean up string utility functions.
4 years ago
Sam Hocevar
155ae65a4e
Start working on the header-only part of the framework.
This implies creating a trimmed down branch that contains almost
nothing. It will then be usable by projects that do not need the
complex build system, and by the engine itself as a submodule from
the same repository.
4 years ago
Sam Hocevar
dd1d8fe4de
sys: fix uninitialised memory in File class.
4 years ago
Sam Hocevar
944923ae6a
emscripten: resume audio context if necessary.
This will probably end up upstream very soon:
https://github.com/emscripten-ports/SDL2/pull/104
4 years ago
Sam Hocevar
bdda5b37df
build: check for -lSDL2_image_bmp-jpg-png as a fallback for -lSDL2_image.
4 years ago
Sam Hocevar
cc7d34400d
net: fix emscripten build.
4 years ago
Sam Hocevar
8c37ce1497
net: fix a Windows compilation issue.
4 years ago
Sam Hocevar
a1e258656e
Minor compilation warning fixes.
4 years ago
Sam Hocevar
607369b223
net: implement async HTTP/HTTPS requests for Windows and Linux.
4 years ago
Sam Hocevar
e1c47e9e03
net: implement async HTTP requests for the emscripten backend.
Does not work very well because of CORS restrictions in browsers.
4 years ago
Sam Hocevar
634fd2960d
Add some emscripten-generated files to .gitignore.
4 years ago
Sam Hocevar
c9a09efec0
sys: fix Linux build.
4 years ago
Sam Hocevar
4defbeaab0
build: provide cpp-httplib to client projects.
4 years ago
Sam Hocevar
9646b3eb6d
build: add a huge lol.props property sheet that seems to do the job for Visual Studio.
4 years ago
Sam Hocevar
84a628671b
net: add the necessary files for an HTTP client class.
4 years ago
Sam Hocevar
369f2b902f
math: fix a warning in the matrix determinant code.
4 years ago
Sam Hocevar
54335bd5aa
build: reference projects using a property sheet instead of a guid.
4 years ago
Sam Hocevar
cfe60cef94
external: ensure we use release binaries.
4 years ago