Vladimír Vondruš
7ef8432fbe
Doxygen: ignore specific namespaces instead of whole directories.
...
Less maintenance burden with `#ifndef DOXYGEN_GENERATING_OUTPUT`,
removed the ones which are not needed anymore.
13 years ago
Vladimír Vondruš
27b6534e78
Added TODO.
13 years ago
Vladimír Vondruš
932b9f4377
Method chaining in Buffer.
13 years ago
Vladimír Vondruš
5c550bb66a
Force OpenGL ES 2.0 target if building for Emscripten.
13 years ago
Vladimír Vondruš
c2a5919b5a
Force static build if building with NaCl's newlib.
13 years ago
Vladimír Vondruš
33ad4b0cff
Platform::Sdl2Application: just wait for next event.
...
No need to loop over when SDL has function designed to do this.
13 years ago
Vladimír Vondruš
6fd8dc86ad
Platform: moved Sdl2Application event loop into separate function.
...
Allowing it to be called perodically from some callback.
13 years ago
Vladimír Vondruš
b40c5ece39
MeshTools: don't create reference from rvalue.
...
Spotted by Emscripten/Clang, not found when running clang normally.
13 years ago
Vladimír Vondruš
1eb5e8c966
Updated NaCl-related documentation and stuff.
13 years ago
Vladimír Vondruš
c5c57e17da
Emscripten: ported FindOpenGLES2.cmake and FindSDL2.cmake.
...
SDL headers are now included relatively.
13 years ago
Vladimír Vondruš
bab0c96846
Method chaining in Timeline.
13 years ago
Vladimír Vondruš
922b93311e
Don't use `constexpr` in Timeline.
...
There is no point in using this class at compile-time. Ever. Moreover
clang called through Emscripten complains that it cannot be constexpr.
Clang called normally doesn't complain, don't know why.
13 years ago
Vladimír Vondruš
69662e4923
Updated FindCorrade.cmake and FindNodeJs.cmake from Corrade repository.
13 years ago
Vladimír Vondruš
458e146765
Math: std::fma() is not available in NaCl's newlib.
13 years ago
Vladimír Vondruš
ee1eecad1a
SceneGraph: wrong assertion.
...
It is easier to just skip the object than explicitly removing
duplicates (or worse, cleaning it more than once).
13 years ago
Vladimír Vondruš
4060c45617
Physics: wat.
...
Brain fart in 39348ddf06 (or probably f'ed
up merge conflict after crashed KDevelop while being interrupted for
lack of attention). Next time commit, stash and _then_ test.
13 years ago
Vladimír Vondruš
f2df328fe2
Using Corrade's visibility macros instead of copypasta all over again.
13 years ago
Vladimír Vondruš
f6ae87376b
Math: added function fma().
13 years ago
Vladimír Vondruš
1402833553
Math: added TODO.
13 years ago
Vladimír Vondruš
1aac14d059
Using CORRADE_ASSERT_UNREACHABLE() instead of CORRADE_ASSERT(false).
13 years ago
Vladimír Vondruš
fac75962d0
SceneGraph: assert that original Object::setClean() is called.
13 years ago
Vladimír Vondruš
39348ddf06
Physics: another mistake in CapsuleTest.
...
The way the shapes are currently implemented is unsustainable.
13 years ago
Vladimír Vondruš
66352a0150
Physics: copypaste error. TWICE! OMG!
13 years ago
Vladimír Vondruš
a2d84ebf0c
Physics: forgot to add test case to the list.
13 years ago
Vladimír Vondruš
c534a71401
DebugTools: preparation for ability to render also solid shapes.
13 years ago
Vladimír Vondruš
3f696533ff
Math: algorithm for computing intersection of two lines in 2D.
13 years ago
Vladimír Vondruš
6385ae1478
Math: more Intersection test cleanup.
13 years ago
Vladimír Vondruš
fd531b5101
Math: cleaned up plane/line intersection.
...
The function now accepts starting point and direction of the line (not
starting and ending point). Also improved the documentation and test a
bit.
13 years ago
Vladimír Vondruš
00a17e3699
DebugTools: saner default color.
...
Default framebuffer clear color is black, thus having black debug
renderers by default isn't much useful.
13 years ago
Vladimír Vondruš
2a6c52c97b
Platform: fix WindowlessGlxApplication context creation and destruction.
...
The variable wasn't initialized so it exited with assertion failure,
moreover the context wasn't deleted on destruction, causing memory leak.
13 years ago
Vladimír Vondruš
71c7480299
Fixed one-value AbstractShaderProgram::setUniform().
...
The original workaround for enums didn't work (all enums were treated as
UnsignedInt even though they had Int as underlying type), moreover the
solution didn't scale for other possible types with implicit
conversions. Now explicitly listing all scalar types and templated
vectors/matrices, it should work for most cases.
13 years ago
Vladimír Vondruš
70ba2bd77c
Primitives: reworked remaining classes to have the same API as the rest.
...
Now every primitive can be created using `solid()` or `wireframe()`
function returning directly Trade::MeshData.
13 years ago
Vladimír Vondruš
3bf9dbc3f7
Trade: properly implement move constructor and assignment in MeshData.
...
Default implementation of move constructor won't set pointer to indices
to `nullptr` in `other` object, thus implementing it explicitly. Not
sure what will happen in move assignment, implementing it explicitly
too.
13 years ago
Vladimír Vondruš
f0958647c1
Platform: more intuitive argc/argv Arguments structure.
13 years ago
Vladimír Vondruš
61e1ec0082
No need to have `const` also in function declarations.
13 years ago
Vladimír Vondruš
1e383e3d70
Physics: very minor code cleanup.
13 years ago
Vladimír Vondruš
62ecc2470f
Made some constructors constexpr.
13 years ago
Vladimír Vondruš
8923f2debb
Added support for uniform arrays.
...
Also not including Math/Matrix.h in AbstractShaderProgram.cpp and using
just RectangularMatrix everywhere.
13 years ago
Vladimír Vondruš
4ab3ab6534
Math: added Vector::lengthInverted().
...
Also because there are SIMD instructions for that.
13 years ago
Vladimír Vondruš
6124ad3c27
Math: added sqrtInverted() function.
...
There are SIMD instructions for that, so why not have it in place.
13 years ago
Vladimír Vondruš
7c3cb652bd
Math: doc++
13 years ago
Vladimír Vondruš
bf58bb3cb1
Math: rework of component-wise matrix and vector functions.
...
First, removed functions which can be done with Vector's member
functions and functions from Functions.h. More flexibility and less
redundant code which leads to easier SIMD implementation later.
Vector4 a;
Float b = a.maxAbs(); // before
Float b = Math::abs(a).max(); // now
Second, removed all functions from RectangularMatrix which are
implemented in Vector and added conversion from RectangularMatrix to
Vector and back. Also for more flexibility and less redundant code (i.e.
reusing SIMD-optimized Vector::max() instead of writing it again).
Matrix4x3 a;
Float b = a.max(); // before
Float b = a.toVector().max(); // now
13 years ago
Vladimír Vondruš
5a377a568e
Physics: default constructors for shapes.
13 years ago
Vladimír Vondruš
a80b4b146d
Math: write Vector2::cross() in terms of perpendicular() and dot().
13 years ago
Vladimír Vondruš
ef0efecc9c
Platform: fixed Sdl2Application::tryCreateContext().
...
It seems that the context is negotiated when creating the window, thus
it fails there and not later when actually creating the context.
13 years ago
Vladimír Vondruš
bb39338008
Platform: better diagnostic in Sdl2Application::tryCreateContext().
13 years ago
Vladimír Vondruš
49154f30c4
Math: added Vector2::perpendicular().
...
Also updated and crosslinked related documentation.
13 years ago
Vladimír Vondruš
218a4c142c
SceneGraph: fixed Object::setClean().
...
Now also all non-clean parent objects are cleaned.
13 years ago
Vladimír Vondruš
9ecb8b5b8d
SceneGraph: fully test also Object::setClean() for list of objects.
...
The test fails (it doesn't clean parent objects).
13 years ago
Vladimír Vondruš
d85c15bca9
SceneGraph: this was fixed in 59a3a7029d.
13 years ago