Sam Hocevar
|
dec41f198f
|
test: syntax fix.
|
pirms 10 gadiem |
Sam Hocevar
|
18476d1b9a
|
test: add unit test for arraynd (deactivated for now).
|
pirms 10 gadiem |
Sam Hocevar
|
079ee8dcbf
|
math: some new operators for generic vectors, plus unit tests.
|
pirms 10 gadiem |
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.
|
pirms 10 gadiem |
Sam Hocevar
|
12aaff89e3
|
base: huge refactor in vector.h; GCC compilation times down by 50%.
|
pirms 10 gadiem |
Sam Hocevar
|
fe665f85b4
|
base: strip core.h from its contents and put it in public/private headers.
|
pirms 10 gadiem |
Sam Hocevar
|
398ee1b4d5
|
base: use lol::array in most places.
|
pirms 10 gadiem |
Sam Hocevar
|
378eaec1cb
|
sys: use the fully working std::atomic instead of our placeholder class.
|
pirms 10 gadiem |
Sam Hocevar
|
7e9f926c43
|
base: switch map, hash, array2d and array3d to lowercase, like standard
C++ containers.
|
pirms 10 gadiem |
Sam Hocevar
|
0b97173ee8
|
math: initialiser lists for Array2D and Array3D.
|
pirms 10 gadiem |
Sam Hocevar
|
8abafbc686
|
math: add Array3D template class. Happy, Touky? :-)
|
pirms 10 gadiem |
Sam Hocevar
|
7b8e56c730
|
base: fix array initialiser and add more unit tests.
|
pirms 10 gadiem |
Sam Hocevar
|
59a157a58c
|
build: port solution to VS2013. Muahahaha.
|
pirms 10 gadiem |
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.
|
pirms 10 gadiem |
Sam Hocevar
|
227411f337
|
image: refactor codecs so that they no longer store anything in the image
objects themselves.
|
pirms 10 gadiem |
Sam Hocevar
|
90786652e8
|
base: fix Array::Insert to avoid copying the whole array and add a unit test.
|
pirms 10 gadiem |
Sam Hocevar
|
f455f0e2d1
|
image: start reworking the Image class to properly split the pixel handling
and the codec logic.
|
pirms 10 gadiem |
Sam Hocevar
|
d16595a0bc
|
image: some refactoring of the Image class. Not final.
|
pirms 10 gadiem |
Sam Hocevar
|
8c3794a168
|
base: support range-based for loops in lol::Array.
|
pirms 10 gadiem |
Sam Hocevar
|
1713602077
|
math: revert the lvalue vector swizzles because VS2012 lags behind.
|
pirms 10 gadiem |
Sam Hocevar
|
ab470ef409
|
math: activate vector swizzling for lvalues.
|
pirms 10 gadiem |
Sam Hocevar
|
47e71bda63
|
base: rough implementation of safe enums with minimal ToString() support.
|
pirms 10 gadiem |
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.
|
pirms 10 gadiem |
Sam Hocevar
|
ab45658080
|
build: compilation fixes for errors caused by recent renamings.
|
pirms 10 gadiem |
Benjamin ‘Touky’ Huet
|
b7fc1953ab
|
Some names tweaks
Added workbench, for personnal experimentation.
|
pirms 10 gadiem |
Sam Hocevar
|
8443733a08
|
math: add GLSL-inherited degrees() and radians() conversion functions.
|
pirms 10 gadiem |
Sam Hocevar
|
66b7dd7198
|
test: remove isnan() unit tests because we can't rely on that function.
|
pirms 11 gadiem |
Sam Hocevar
|
5f3ad5cc15
|
math: add constant vectors vec2::zero, vec2::axis_x, etc.
|
pirms 11 gadiem |
Sam Hocevar
|
7108f8566d
|
math: add orthogonal() and orthonormal() for 3-component vectors.
|
pirms 11 gadiem |
Sam Hocevar
|
353d0a4417
|
math: last pass (hopefully) at the quaternion/euler conversions.
|
pirms 11 gadiem |
Sam Hocevar
|
d5d73330e8
|
math: more quaternion to Euler angles fixes, plus unit tests.
|
pirms 11 gadiem |
Sam Hocevar
|
9ecd579593
|
math: fix quaternion to euler conversion and add unit tests.
|
pirms 11 gadiem |
Benjamin ‘Touky’ Huet
|
81806bf47c
|
testsuite : fixed camera.cpp build
|
pirms 11 gadiem |
Benlitz
|
e50f75403a
|
core: added StartsWith and EndsWith function for strings, and a sign function for numeric types
|
pirms 11 gadiem |
Sam Hocevar
|
561d33748f
|
build: update unit tests following API change.
|
pirms 11 gadiem |
Benjamin ‘Touky’ Huet
|
48e8ce206e
|
camera unit test tweak
|
pirms 11 gadiem |
Benjamin ‘Touky’ Huet
|
3778159bdc
|
added camera unit test.
|
pirms 11 gadiem |
Sam Hocevar
|
c6e453fe5c
|
math: add unit tests for quat::rotate(vec3, vec3).
|
pirms 11 gadiem |
Sam Hocevar
|
e848af3f2a
|
math: fix an error in the quaternion code and update test suite.
|
pirms 11 gadiem |
Sam Hocevar
|
ca230a60ad
|
thread: implement Queue::TryPush and Queue::TryPop.
|
pirms 11 gadiem |
Sam Hocevar
|
ef0bd031ab
|
base: Array::Remove(int) now accepts a negative index to remove elements
from the end. Also added Array::RemoveSwap() for faster removes at the
expense of element ordering.
|
pirms 11 gadiem |
Lolbot
|
8cc04f0ba9
|
fixed 7 files out of 2745:
- removed 0 CR characters
- removed 21 trailing whitespaces
- replaced 42 tabs with spaces
|
pirms 11 gadiem |
Benlitz
|
e7b0c85e0f
|
Added comparison operators between strings and char const*
|
pirms 11 gadiem |
Sam Hocevar
|
98f8246323
|
build: lol-build now passes flags to configure, and configure now uses
optimisation flag -Os instead of -O3.
|
pirms 11 gadiem |
Sam Hocevar
|
13d3c9d828
|
test: speed up the Map unit test.
|
pirms 11 gadiem |
Lolbot
|
b078ba08ea
|
fixed 15 files out of 2730:
- removed 49 CR characters
- removed 2 trailing whitespaces
- replaced 1622 tabs with spaces
|
pirms 11 gadiem |
Benlitz
|
1e353d2d30
|
material and texture loading from .OBJ + uniform sampler assignment from the mesh class (wip)
|
pirms 11 gadiem |
Benlitz
|
4b98ef04a6
|
Added IndexOf and LastIndexOf methods in class String
|
pirms 11 gadiem |
Sam Hocevar
|
96e26a2bd5
|
math: rename Box2D to "box2" and add an integer version, "ibox2".
|
pirms 11 gadiem |
Sam Hocevar
|
e6b0bd07bf
|
image: hide the constructor behind a factory so that we can later
return an already created object if necessary.
|
pirms 11 gadiem |