Vladimír Vondruš
7f89105a51
Math: converted Geometry::Distance and Intersection to namespaces.
...
No need for them to be classes, less indentation, less keywords and
boilerplate, more space for documentation, better `using` usage. Also
revised and fixed various issues in the documentation.
10 years ago
Vladimír Vondruš
e722286200
Math: reference intersection functions from Frustum docs.
10 years ago
Vladimír Vondruš
b6858030b8
Math: ability to convert Frustum from/to external representations.
10 years ago
Vladimír Vondruš
421218c2d1
Math: return const& from Frustum::operator[].
...
So constexpr access on Vector elements is possible as well.
10 years ago
Vladimír Vondruš
20b3adbc55
Math: ability to convert Bezier from/to external representation.
10 years ago
Vladimír Vondruš
620b571766
Math: fix template declaration for Range converter.
10 years ago
Vladimír Vondruš
54f4087ab8
Math: return const& from Bezier::operator[].
...
So constexpr access on Vector elements is possible as well.
10 years ago
Vladimír Vondruš
e5fd5b56f8
Math: document why RectangularMatrix::operator[] returns const&.
10 years ago
Vladimír Vondruš
3cedefe14b
Math: remove GCC constexpr workaround from the tests.
10 years ago
Vladimír Vondruš
90c5001673
Math: remove dead frustum/box intersection code.
...
The additional corner checks are not implemented now, thus the code is
more complex than it needs to be.
10 years ago
Vladimír Vondruš
87f4fc46c2
Math: simplify the distance math.
...
Sum of all components of a component-wise vector multiplication is, in
fact, a dot product.
10 years ago
Vladimír Vondruš
01fa24910f
Math: conversion constructor for Frustum.
10 years ago
Vladimír Vondruš
3952a20099
Math: verify that the Frustum constructor is implicit.
10 years ago
Vladimír Vondruš
8d1d786698
Math: more Frustum data access functions, test for constexprness.
10 years ago
Vladimír Vondruš
3e2464cded
Math: default/identity and NoInit constructors for Frustum, tests.
10 years ago
Vladimír Vondruš
70ef473710
Math: verify that the NoInit constructors are explicit.
10 years ago
Vladimír Vondruš
310e1c1c25
Math: noexcept constructor for Frustum.
10 years ago
Vladimír Vondruš
54d1aefcba
Math: equality comparison for Frustum.
...
Together with the debug operator it allows for much simpler testing.
10 years ago
Vladimír Vondruš
376ea1e0b2
Math: debug operator for Frustum.
10 years ago
Vladimír Vondruš
28c31bfc96
Math: I don't see why we should have those overloads.
...
The compiler does that for us. Probably a brain fart from 2010. On the
other hand, the ConfigurationValue specializations need to be there,
because the type is used explicitly as template parameter.
10 years ago
Vladimír Vondruš
cfc622c92c
Math: explicitly instantiate commonly used Range debug operators.
...
Might save some executable bloat. Not sure why this wasn't done already.
10 years ago
Vladimír Vondruš
32f357752f
Math: the world is not just about OpenGL.
10 years ago
Vladimír Vondruš
605b34079e
Added typedefs and forward declaration for Math::Frustum.
10 years ago
Vladimír Vondruš
b7eb367dde
Math: cleanup, code compression.
10 years ago
Vladimír Vondruš
7bc1d9f129
Update credits.
10 years ago
Squareys
1f995d1ab2
Math: Add Distance::pointPlane* and two frustum intersection functions
...
`Intersection::pointFrustum` and `Intersection::boxFrustum`
Signed-off-by: Squareys <Squareys@googlemail.com>
10 years ago
Squareys
0062fbf78e
Math: Add rudimentary Frustum class
...
Signed-off-by: Squareys <Squareys@googlemail.com>
10 years ago
Vladimír Vondruš
bd8d807e1c
Make Linux/Windows code for windowless apps on ES more consistent.
10 years ago
Vladimír Vondruš
9fcfd5ee25
Platform: fix compilation of WindowlessWindowsEglApplication.
10 years ago
Vladimír Vondruš
1eb26bd1a5
Test: workaround/suppress leaks when ResourceManager is asserting.
...
The code is bad (yes, I know), but these should be harmless as the leaks
are really only when asserting.
10 years ago
Vladimír Vondruš
1a077391ce
Math: expect failure in Double SVD test on recent Emscripten versions.
...
Something got broken (1.36.13, 14). Was working fine with 1.36.5.
10 years ago
Vladimír Vondruš
37565d5414
Math: print 8-bit colors as hex in Debug.
...
So #ffffff00 instead of Vector(255, 255, 255, 0). Much shorter with the
same information value.
10 years ago
Vladimír Vondruš
1fdd532910
Math: return proper subclass from Matrix::transposed().
10 years ago
Vladimír Vondruš
930018c2ad
Math: doc++
10 years ago
Vladimír Vondruš
94a3ae8174
Final attempt to fix shaders w/o version directive.
...
Took me insane amount of time. I blame those 12-hour working days.
10 years ago
Vladimír Vondruš
ec83697242
Test that it's possible to compile a single-file shader w/o version.
...
It asserts. I'm having a really bad day today.
10 years ago
Vladimír Vondruš
db5e0f4e27
Don't add anything before user-specified shader version directive.
...
Thanks @acterhd for the report.
10 years ago
Vladimír Vondruš
90791c370a
Test that nothing is added before user-specified shader version directive.
...
Fails.
10 years ago
Vladimír Vondruš
5fcdd48808
Math: clarify what Matrix4::lookAt() does.
10 years ago
Vladimír Vondruš
69dfc39f30
Math: don't compare const char* as pointers in test by accident.
10 years ago
Vladimír Vondruš
210949f2dd
Math: long double is the same as double also on Android.
10 years ago
Vladimír Vondruš
c47f8e04e3
Math: test for size of long double.
...
In order to have predictable results in the tests.
10 years ago
Vladimír Vondruš
60b56b0999
Math: no need for that GCC type deduction workaround anymore.
10 years ago
Vladimír Vondruš
081f79a766
Bundle test files for both Android and Emscripten.
10 years ago
Vladimír Vondruš
261c573557
Platform: build Android glue C source separately.
...
So I don't include the pedantic flags for it and don't treat it as C++
source.
10 years ago
Vladimír Vondruš
d1ce761cce
Trade: conditionally disable noexcept for GCC 4.9.0 in Android NDK.
...
It complains about singatures not matching the implicit and thus not
being defaultable. Works everywhere else, even on GCC 4.7 and 5.0, so I
don't bother.
10 years ago
Vladimír Vondruš
a2c8435ede
Use new TestSuite numeric comparators where appropriate.
10 years ago
Vladimír Vondruš
cf185b00fa
Math: add explicit boolean conversion to BoolVector.
10 years ago
Vladimír Vondruš
90b005cfa3
Doc++
...
I have no idea what I was doing here. Insufficient focus again.
10 years ago
Vladimír Vondruš
5c7b1a0eb2
Math: simplify Matrix4::lookAt().
10 years ago