Sam Hocevar
9d4b7ff456
Refactor header usage to use our core submodule instead.
5 years ago
Sam Hocevar
8294264837
feature: assume all compilers can now initialise arrays C++11-style.
6 years ago
Sam Hocevar
2c5a1be8b3
Make the check for threading support runtime to make debugging easier.
6 years ago
Sam Hocevar
7591962cb0
gpu: fix 32-bit compilation on Windows.
6 years ago
Sam Hocevar
6187be0850
emscripten: use document.querySelector() instead of getElementById().
6 years ago
Sam Hocevar
9c13aabe98
build: fix the mingw cross compilation.
6 years ago
Sam Hocevar
1388625308
input: remove dead code and more cleanup.
6 years ago
Sam Hocevar
7ba8458818
Remove old feature macros that are no longer relevant nowadays.
6 years ago
Sam Hocevar
34fab09274
Remove NaCl support. Google is deprecating it.
7 years ago
Sam Hocevar
67dd817aa2
math: remove unused trig code.
Let’s be honest, I’m never gonna use it in its current form.
7 years ago
Sam Hocevar
0239617197
Various compilation and warning fixes.
8 years ago
Sam Hocevar
29b41d9c08
Fix typo in nodiscard attribute feature detection.
8 years ago
Sam Hocevar
fe99aca67d
Use [[nodiscard]] in a lot of places.
This will let us detect problems with unused return values. For instance,
if you don’t remember that normalize(q) returns a pointer and expect it
to modify the object, you’ll get this warning:
warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
quat q(1,2,3,4); normalize(q);
^~~~~~~~~ ~
8 years ago
Sam Hocevar
c86f703dcf
Some Windows compilation fixes + support for [[nodiscard]].
8 years ago
Sam Hocevar
861568b146
misc: some cleanup in files, including UTF-8 BOM.
10 years ago
Sam Hocevar
144cb0df31
sys: get rid of pthreads.
Since C++11 threads are available on every platform that has threads, we
no longer need our pthread implementation. The LOL_FEATURE_CXX11_THREADS
macro is gone, too, and we now just use LOL_FEATURE_THREADS.
Note that it is still necessary to link with -lpthread or -pthread on
some platforms, so we don’t throw that part away.
10 years ago
Benjamin ‘Touky’ Huet
825401d997
Brought threads to C++11
Revamped thread communication
Fixed dynamic thread Add/Remove
Added unit-test for threads !!!!
10 years ago
Sam Hocevar
4196f315be
misc: various C++11-related compilation fixes for Visual Studio.
11 years ago
Sam Hocevar
a07844682e
build: remove dead PS3 code.
11 years ago
Sam Hocevar
7ea3b73ed7
image: endianness fixes in the Imlib2 codec.
11 years ago
Sam Hocevar
d373081b80
build: use #pragma once instead of header guards because 1) fuck the dinosaurs,
and 2) fuck the Visual Studio compiler that crashes when confused.
11 years ago
Sam Hocevar
5da959e6e4
build: work around another fucking ICE in Visual Studio.
11 years ago
Sam Hocevar
761f92c0b4
base: get rid of the ssize_t requirement and use ptrdiff_t instead.
11 years ago
Sam Hocevar
83199e3028
math: explicitly delete ctors and dtors in swizzled vectors.
11 years ago
Sam Hocevar
7a28671dee
math: get rid of the base_vec* classes (thanks to relaxed unions), rename
MASK to SWIZZLE in the vector templates, rename matrix<> to mat<> for
consistency, implement transposition for all matrix sizes, make matrix
columns private and only accessible through operator[].
11 years ago
Sam Hocevar
1b5d3557ec
build: some compilation fixes and tweaks for older (<= 4.6) versions of GCC.
11 years ago
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
11 years ago