Sam Hocevar
d1a24228a2
Move lolunit.h to lol-core because it makes sense.
hace 5 años
Sam Hocevar
67dd817aa2
math: remove unused trig code.
Let’s be honest, I’m never gonna use it in its current form.
hace 7 años
Sam Hocevar
d332ad0f6f
math: add unit tests to check that radians(90) == radians(90.0).
hace 10 años
Sam Hocevar
45b792cc8e
test: refactor some stuff in the unit tests because I like it better that way.
hace 10 años
Sam Hocevar
861568b146
misc: some cleanup in files, including UTF-8 BOM.
hace 10 años
Sam Hocevar
d64b117b8d
build: fix license and copyright information.
hace 10 años
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
hace 11 años
Sam Hocevar
6b64e2c337
lolunit: switch assert macros to lowercase.
hace 11 años
Sam Hocevar
cadc4d18b0
test: move the unit tests to the engine, and lolunit out of the engine.
hace 11 años
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
hace 11 años
Sam Hocevar
8443733a08
math: add GLSL-inherited degrees() and radians() conversion functions.
hace 11 años
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
hace 13 años
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
hace 13 años
Sam Hocevar
caec5ed082
build: allow to build the PS3 binaries from Visual Studio if the proper
software is installed.
hace 13 años
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.
hace 13 años
Sam Hocevar
0303a8384f
win32: fix Visual Studio compilation and link issues.
hace 13 años
Sam Hocevar
8bea4cf189
math: ensure real::fabs() is never chosen over std::fabs() for arguments
that are not explicitly real, even with namespace mistakes.
hace 13 años
Sam Hocevar
54f74a1b20
win32: some compilation fixes here and there.
hace 14 años
Sam Hocevar
56511457d2
test: give more explicit names to unit test cases.
hace 14 años
Sam Hocevar
5081f7034a
test: reorganise test suite and benchmark code.
hace 14 años
Sam Hocevar
5a5b811200
lolunit: rename a few methods for consistency.
hace 14 años
Sam Hocevar
2290b7b930
lolunit: add a LOLUNIT_SET_CONTEXT / LOLUNIT_UNSET_CONTEXT macro pair.
This is useful when doing several asserts in one loop, for instance: there
isn't always a way to deduce the loop index from the assert failure, so
these macros allow the user to give more context information.
hace 14 años
Sam Hocevar
5ab9eb3c62
test: get rid of the need for LOLUNIT_SETUP_FIXTURE().
hace 14 años
Sam Hocevar
a374127e80
test: replace CppUnit with our LolUnit test suite.
CppUnit is really too large for our needs, would require to be precompiled
for many platforms, in all combinations of debug and release modes, with
additional variants for libstdc++ versions. We replace it with our own
lightweight implementation, LolUnit. Good riddance.
hace 14 años
Sam Hocevar
0e622822e7
test: add a few Visual Studio 2010 project files and fix testsuite code
so that it builds properly.
hace 14 años
Sam Hocevar
5454005d81
debug: various improvements to the test programs.
hace 14 años
Sam Hocevar
2489233a44
core: improve tan() accuracy by tweaking higher order Taylor coefficients.
hace 14 años
Sam Hocevar
82d81256b9
core: implement accelerated lol_sincos() and lol_tan().
hace 14 años
Sam Hocevar
49f9c59ff3
core: implement accelerated cos().
hace 14 años
Sam Hocevar
6ed53d9868
test: do the trigonometry tests on doubles instead of floats.
hace 14 años
Sam Hocevar
105485a3aa
test: new test for trigonometric functions.
hace 14 años