Sam Hocevar
|
17fe1306d2
|
math: improve outer product and add unit tests.
|
10 years ago |
Guillaume Bittoun
|
2f056e0133
|
arraynd: replacing array2d and array3d by templated arraynd.
|
10 years ago |
Guillaume Bittoun
|
e03ac49383
|
arraynd: adding tests on size filling
|
10 years ago |
Guillaume Bittoun
|
04e44e2d89
|
arraynd: adding test for variable length subarrays
|
10 years ago |
Guillaume Bittoun
|
7cab9c634e
|
arraynd: index inversion on initializer_list construction
|
10 years ago |
Guillaume Bittoun
|
a28832a53b
|
arraynd: implementation/correction of the initializer_list constructor
|
10 years ago |
Sam Hocevar
|
7dba2ff3a1
|
base: use ptrdiff_t for array and string sizes and some other things.
|
10 years ago |
Sam Hocevar
|
29dd656a78
|
math: make swizzling parameters readable in base 10 so that we understand
what's going on in the debugger.
|
10 years ago |
Sam Hocevar
|
90f0420382
|
math: fix uninitialised variable in arraynd.
|
10 years ago |
Sam Hocevar
|
47f7fabbd9
|
math: activate arraynd and simplify some stuff in there.
|
10 years ago |
Sam Hocevar
|
cc5c21c34b
|
math: add iterators and initializer_list constructors to vec_t.
|
10 years ago |
Sam Hocevar
|
dec41f198f
|
test: syntax fix.
|
10 years ago |
Sam Hocevar
|
18476d1b9a
|
test: add unit test for arraynd (deactivated for now).
|
10 years ago |
Sam Hocevar
|
079ee8dcbf
|
math: some new operators for generic vectors, plus unit tests.
|
10 years ago |
Sam Hocevar
|
7babf9dfde
|
math: fix a nasty bug involving swizzling vectors, add two safeguards so
that it never happens again, and unit tests in case it happens again.
|
10 years ago |
Sam Hocevar
|
12aaff89e3
|
base: huge refactor in vector.h; GCC compilation times down by 50%.
|
10 years ago |
Sam Hocevar
|
fe665f85b4
|
base: strip core.h from its contents and put it in public/private headers.
|
10 years ago |
Sam Hocevar
|
398ee1b4d5
|
base: use lol::array in most places.
|
10 years ago |
Sam Hocevar
|
378eaec1cb
|
sys: use the fully working std::atomic instead of our placeholder class.
|
10 years ago |
Sam Hocevar
|
7e9f926c43
|
base: switch map, hash, array2d and array3d to lowercase, like standard
C++ containers.
|
10 years ago |
Sam Hocevar
|
0b97173ee8
|
math: initialiser lists for Array2D and Array3D.
|
10 years ago |
Sam Hocevar
|
8abafbc686
|
math: add Array3D template class. Happy, Touky? :-)
|
10 years ago |
Sam Hocevar
|
7b8e56c730
|
base: fix array initialiser and add more unit tests.
|
10 years ago |
Sam Hocevar
|
59a157a58c
|
build: port solution to VS2013. Muahahaha.
|
10 years ago |
Sam Hocevar
|
5fc5d62849
|
image: add an optional Imlib2 codec, prepare for float32 images, make the
Lock/Unlock mechanism safer, and implement the rule of three.
|
10 years ago |
Sam Hocevar
|
227411f337
|
image: refactor codecs so that they no longer store anything in the image
objects themselves.
|
10 years ago |
Sam Hocevar
|
90786652e8
|
base: fix Array::Insert to avoid copying the whole array and add a unit test.
|
10 years ago |
Sam Hocevar
|
f455f0e2d1
|
image: start reworking the Image class to properly split the pixel handling
and the codec logic.
|
10 years ago |
Sam Hocevar
|
d16595a0bc
|
image: some refactoring of the Image class. Not final.
|
10 years ago |
Sam Hocevar
|
8c3794a168
|
base: support range-based for loops in lol::Array.
|
10 years ago |
Sam Hocevar
|
1713602077
|
math: revert the lvalue vector swizzles because VS2012 lags behind.
|
10 years ago |
Sam Hocevar
|
ab470ef409
|
math: activate vector swizzling for lvalues.
|
10 years ago |
Sam Hocevar
|
47e71bda63
|
base: rough implementation of safe enums with minimal ToString() support.
|
10 years ago |
Sam Hocevar
|
cb62b52ce6
|
math: add quat::axis() and quat::angle() to retrieve axis and angle from a
quaternion, improve quat::rotate(vec3, vec3) to gracefully handle corner
cases, and add unit tests for all of these.
|
11 years ago |
Sam Hocevar
|
ab45658080
|
build: compilation fixes for errors caused by recent renamings.
|
11 years ago |
Benjamin ‘Touky’ Huet
|
b7fc1953ab
|
Some names tweaks
Added workbench, for personnal experimentation.
|
11 years ago |
Sam Hocevar
|
8443733a08
|
math: add GLSL-inherited degrees() and radians() conversion functions.
|
11 years ago |
Sam Hocevar
|
66b7dd7198
|
test: remove isnan() unit tests because we can't rely on that function.
|
11 years ago |
Sam Hocevar
|
5f3ad5cc15
|
math: add constant vectors vec2::zero, vec2::axis_x, etc.
|
11 years ago |
Sam Hocevar
|
7108f8566d
|
math: add orthogonal() and orthonormal() for 3-component vectors.
|
11 years ago |
Sam Hocevar
|
353d0a4417
|
math: last pass (hopefully) at the quaternion/euler conversions.
|
11 years ago |
Sam Hocevar
|
d5d73330e8
|
math: more quaternion to Euler angles fixes, plus unit tests.
|
11 years ago |
Sam Hocevar
|
9ecd579593
|
math: fix quaternion to euler conversion and add unit tests.
|
11 years ago |
Benjamin ‘Touky’ Huet
|
81806bf47c
|
testsuite : fixed camera.cpp build
|
11 years ago |
Benlitz
|
e50f75403a
|
core: added StartsWith and EndsWith function for strings, and a sign function for numeric types
|
11 years ago |
Sam Hocevar
|
561d33748f
|
build: update unit tests following API change.
|
11 years ago |
Benjamin ‘Touky’ Huet
|
48e8ce206e
|
camera unit test tweak
|
11 years ago |
Benjamin ‘Touky’ Huet
|
3778159bdc
|
added camera unit test.
|
11 years ago |
Sam Hocevar
|
c6e453fe5c
|
math: add unit tests for quat::rotate(vec3, vec3).
|
11 years ago |
Sam Hocevar
|
e848af3f2a
|
math: fix an error in the quaternion code and update test suite.
|
11 years ago |