Sam Hocevar
|
ab470ef409
|
math: activate vector swizzling for lvalues.
|
10 年前 |
Sam Hocevar
|
47e71bda63
|
base: rough implementation of safe enums with minimal ToString() support.
|
10 年前 |
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.
|
10 年前 |
Sam Hocevar
|
ab45658080
|
build: compilation fixes for errors caused by recent renamings.
|
10 年前 |
Benjamin ‘Touky’ Huet
|
b7fc1953ab
|
Some names tweaks
Added workbench, for personnal experimentation.
|
10 年前 |
Sam Hocevar
|
8443733a08
|
math: add GLSL-inherited degrees() and radians() conversion functions.
|
10 年前 |
Sam Hocevar
|
66b7dd7198
|
test: remove isnan() unit tests because we can't rely on that function.
|
11 年前 |
Sam Hocevar
|
5f3ad5cc15
|
math: add constant vectors vec2::zero, vec2::axis_x, etc.
|
11 年前 |
Sam Hocevar
|
7108f8566d
|
math: add orthogonal() and orthonormal() for 3-component vectors.
|
11 年前 |
Sam Hocevar
|
353d0a4417
|
math: last pass (hopefully) at the quaternion/euler conversions.
|
11 年前 |
Sam Hocevar
|
d5d73330e8
|
math: more quaternion to Euler angles fixes, plus unit tests.
|
11 年前 |
Sam Hocevar
|
9ecd579593
|
math: fix quaternion to euler conversion and add unit tests.
|
11 年前 |
Benjamin ‘Touky’ Huet
|
81806bf47c
|
testsuite : fixed camera.cpp build
|
11 年前 |
Benlitz
|
e50f75403a
|
core: added StartsWith and EndsWith function for strings, and a sign function for numeric types
|
11 年前 |
Sam Hocevar
|
561d33748f
|
build: update unit tests following API change.
|
11 年前 |
Benjamin ‘Touky’ Huet
|
48e8ce206e
|
camera unit test tweak
|
11 年前 |
Benjamin ‘Touky’ Huet
|
3778159bdc
|
added camera unit test.
|
11 年前 |
Sam Hocevar
|
c6e453fe5c
|
math: add unit tests for quat::rotate(vec3, vec3).
|
11 年前 |
Sam Hocevar
|
e848af3f2a
|
math: fix an error in the quaternion code and update test suite.
|
11 年前 |
Sam Hocevar
|
ca230a60ad
|
thread: implement Queue::TryPush and Queue::TryPop.
|
11 年前 |
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.
|
11 年前 |
Lolbot
|
8cc04f0ba9
|
fixed 7 files out of 2745:
- removed 0 CR characters
- removed 21 trailing whitespaces
- replaced 42 tabs with spaces
|
11 年前 |
Benlitz
|
e7b0c85e0f
|
Added comparison operators between strings and char const*
|
11 年前 |
Sam Hocevar
|
98f8246323
|
build: lol-build now passes flags to configure, and configure now uses
optimisation flag -Os instead of -O3.
|
11 年前 |
Sam Hocevar
|
13d3c9d828
|
test: speed up the Map unit test.
|
11 年前 |
Lolbot
|
b078ba08ea
|
fixed 15 files out of 2730:
- removed 49 CR characters
- removed 2 trailing whitespaces
- replaced 1622 tabs with spaces
|
11 年前 |
Benlitz
|
1e353d2d30
|
material and texture loading from .OBJ + uniform sampler assignment from the mesh class (wip)
|
11 年前 |
Benlitz
|
4b98ef04a6
|
Added IndexOf and LastIndexOf methods in class String
|
11 年前 |
Sam Hocevar
|
96e26a2bd5
|
math: rename Box2D to "box2" and add an integer version, "ibox2".
|
11 年前 |
Sam Hocevar
|
e6b0bd07bf
|
image: hide the constructor behind a factory so that we can later
return an already created object if necessary.
|
11 年前 |
Sam Hocevar
|
f16704ecb0
|
image: GetData returns uint8_t* instead of void*, it's a lot safer.
|
11 年前 |
Sam Hocevar
|
33ab2042e7
|
test: disable a few non-essential and potentially incorrect unit tests.
|
11 年前 |
Sam Hocevar
|
94acb0f519
|
build: the “fuck you, Apple” commit; work around three different
compiler bugs in the Xcode toolchain.
|
11 年前 |
Sam Hocevar
|
affdedd835
|
test: more complete PRNG unit tests.
|
11 年前 |
Sam Hocevar
|
700520d4d6
|
math: move rand() to its own header, ensure it only returns
positive values, and add a unit test for rand<int>.
|
11 年前 |
Sam Hocevar
|
9819425ba0
|
math: replace RandF() with a more generic rand() template function
that lets us draw integer random values too.
|
11 年前 |
Sam Hocevar
|
8143b73ffb
|
math: add Box2d + vec2 operations for easy box translations.
|
11 年前 |
Sam Hocevar
|
fdc877cc29
|
math: fix an idiotic bug in the box-box intersection routine.
|
11 年前 |
Sam Hocevar
|
7b30d99725
|
test: unit test for 2D boxes.
|
11 年前 |
Sam Hocevar
|
80e0d4c1c0
|
math: replace Interp with TimeInterp. We'll see how useful it gets.
|
11 年前 |
Sam Hocevar
|
75a39b691e
|
test: add unit tests for maps using C strings as keys.
|
11 年前 |
Sam Hocevar
|
5ea012c192
|
base: add Array::Swap() method and the corresponding unit test.
|
11 年前 |
Sam Hocevar
|
6c8186389f
|
math: Interp class for frame-independent interpolation.
|
11 年前 |
Sam Hocevar
|
ff32da97ad
|
test: add missing unit tests for the Atomic template class.
|
12 年前 |
Sam Hocevar
|
e14a8d68a2
|
color: slightly tweak the RGB to HSV and HSL conversions for
improved numerical stability on i386.
|
12 年前 |
Sam Hocevar
|
57814351b9
|
base: optimise array concatenation, fix string concatenation, and fix
string concatenation unit tests.
|
12 年前 |
Sam Hocevar
|
a5cb244d1d
|
test: add unit tests for the String class; they currently fail
because we actually have a bug!
|
12 年前 |
Sam Hocevar
|
41b752e635
|
base: tweak the asserts in the String class, add String::Sub() method
for substrings, and the corresponding unit tests.
|
12 年前 |
Sam Hocevar
|
3973f80a9d
|
base: fix a nasty double free issue in Array::Remove().
|
12 年前 |
Sam Hocevar
|
47cf667a93
|
color: write the RGB to HSL routine and its associated unit tests.
|
12 年前 |