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 年之前 |
Sam Hocevar
|
5715742774
|
color: optimise RGB to HSV conversion routine using my latest findings,
and add a simple unit test function.
|
12 年之前 |
Benjamin ‘Touky’ Huet
|
c7219ff1dd
|
New year copyright update.
|
12 年之前 |
Sam Hocevar
|
99b0874652
|
color: simplify CIEDE2000 distance code.
|
12 年之前 |
Sam Hocevar
|
b12c16448a
|
color: fix a mistake in the CIEDE2000 color-difference formula.
|
12 年之前 |
Sam Hocevar
|
a5ba03b405
|
color: unit test data for the CIEDE2000 color-difference formula.
|
12 年之前 |
Sam Hocevar
|
d6634da83f
|
build: fix the WTFPL site URL in all code comments.
|
12 年之前 |
Sam Hocevar
|
bbc2edcc8e
|
core: we can now set Map elements using simply map[foo] = bar, no need for
a Set() method. Also, new HasKey() method.
|
12 年之前 |
Sam Hocevar
|
dff7a5b72c
|
core: do not use va_copy since Visual Studio doesn’t know about it.
|
12 年之前 |
Sam Hocevar
|
949128d325
|
core: implement String::Printf() and start working on the unit tests.
I'm gonna commit this right now though I'm not really sure whether Visual
Studio will agree to build va_copy and others.
|
12 年之前 |
Sam Hocevar
|
46f7e750c0
|
core: more string concatenation and comparison methods, plus a lot
of unit tests for the String class.
|
12 年之前 |
Sam Hocevar
|
d4c0c005d6
|
math: refactor real number constant declarations so that they are only
computed on demand with static initialisation.
|
12 年之前 |
Sam Hocevar
|
f2c269cb1e
|
math: add dot() for quaternions, plus the relevant unit test.
|
12 年之前 |
Sam Hocevar
|
62744d98bb
|
test: add a unit test to ensure default constructed reals are initialised
to zero.
|
12 年之前 |
Sam Hocevar
|
caec5ed082
|
build: allow to build the PS3 binaries from Visual Studio if the proper
software is installed.
|
12 年之前 |
Sam Hocevar
|
8375f3443d
|
build: fix the PS3 port by using our trig.h everywhere instead of stdlib
functions; also remove a lot of idiotic "using namespace std" from the
codebase.
|
12 年之前 |
Sam Hocevar
|
a71562bd83
|
core: rename f64vec4 to dvec4 etc. for consistency with GLSL.
|
12 年之前 |
Sam Hocevar
|
a4fb64d6c8
|
test: add a few unit tests for datatype sanity.
|
12 年之前 |