Vladimír Vondruš
2eb4e3c8ba
Removed default template argument from DimensionTraits.
...
It's not obvious what should be the default and thus it is confusing.
Sometimes Int, sometimes Float, no clear winner.
13 years ago
Vladimír Vondruš
cfd405c32c
Getting rid of <>, part 5: SceneGraph object.
13 years ago
Vladimír Vondruš
a0d60bbaa7
Getting rid of <>, part 2: SceneGraph cameras and drawables.
...
This allows to use those nice aliases even on GCC <= 4.6 without
resorting to verbose full name. Double and other types can be then
typedef'd as e.g. Camera3Dd or Camera3Di.
13 years ago
Vladimír Vondruš
a7f5bef038
Getting rid of <>, part 1: Color classes.
...
Inspired in STL, base templated class is renamed to BasicColor{3,4} and
typedef'd with Float type to Color{3, 4}. It is much nicer to write
this:
Color3(1.0f)
Color3::fromHSV(25.0_degf, 0.5f, 0.9f);
instead of this:
Color3<>(1.0f);
Color3<>::fromHSV(25.0_degf, 0.5f, 0.9f);
13 years ago
Vladimír Vondruš
5bf61ceb74
*Tools: deinlined heavy functions, removed redundant `inline`.
13 years ago
Vladimír Vondruš
db71a23e3c
Bring whole Corrade namespace into Magnum namespace.
...
These projects are tightly interconnected anyway, this means a lot less
typing (yay!).
13 years ago
Vladimír Vondruš
06d707f25c
Shape rework #8 : updated documentation.
13 years ago
Vladimír Vondruš
6d8639cc76
Physics shape rework #7 : renamed Physics namespace to Shapes.
13 years ago
Vladimír Vondruš
c089fce239
Physics shape rework #5 : renaming.
...
ObjectShape* is now Shape*, ShapeGroup is now Composition.
13 years ago
Vladimír Vondruš
2cceafed3c
DebugTools: adapted ShapeRenderer to Physics changes.
...
Now using const reference to the shape instead of non-const one, also
removed some duplicated code and unneeded includes from the switch,
these operations are done in renderer implementations themselves.
13 years ago
Vladimír Vondruš
623fda0dc7
Shaders: removed superfluous `*Shader` suffix from class names.
13 years ago
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š
f2df328fe2
Using Corrade's visibility macros instead of copypasta all over again.
13 years ago
Vladimír Vondruš
c534a71401
DebugTools: preparation for ability to render also solid shapes.
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š
82ca09a4ed
Minor documentation fixes.
...
It's not needed to have empty `()` after class name in this type
of expressions:
(new Object())
->setFoo(a)
->setBar(b);
13 years ago
Vladimír Vondruš
45cbf1669f
DebugTools: 2D and 3D LineSegment support in ShapeRenderer.
13 years ago
Vladimír Vondruš
7a12cbe8b1
DebugTools: use proper sphere parameters in ShapeRenderer.
13 years ago
Vladimír Vondruš
4000ef571b
DebugTools: support color alpha in ForceRenderer and ShapeRenderer.
13 years ago
Vladimír Vondruš
c79327ee43
Option to build Magnum as static library.
...
And optionaly position-independent code. The tests now pass again, if
both Corrade and Magnum is static.
13 years ago
Vladimír Vondruš
4f4e1230d7
DebugTools: added support for 2D spheres into ShapeRenderer.
13 years ago
Vladimír Vondruš
79b4c0dbbd
DebugTools: take also object rotation into account in ForceRenderer.
...
Currently the force was only translated, completely ignoring object
translation.
13 years ago
Vladimír Vondruš
c455955d50
DebugTools: render boxes with size as half extent, not full.
...
Also clarified the documentation in Physics::Box and
Physics::AxisAlignedBox classes.
13 years ago
Vladimír Vondruš
f490fc8149
DebugTools: no need to prefix the test so much.
13 years ago
Vladimír Vondruš
7bb580e03b
GCC 4.6 compatibility: this can't be constexpr, don't know why.
13 years ago
Vladimír Vondruš
a60f35a026
Fixed a few typos in docs (ahem).
13 years ago
Vladimír Vondruš
408f40a908
Math: renamed MathTypeTraits to TypeTraits.
...
As there is no Magnum::TypeTraits struct anymore, there is no need to
have redundant name in it. Hopefully Doxygen will handle the difference
between this and Corrade's TypeTraits.h properly.
13 years ago
Vladimír Vondruš
a0b83edd2b
Relicensing to MIT/Expat license, part 4: CMake and documentation files.
...
They didn't contain license header before, but I think adding it also
there wouldn't do any harm. Documentation is also integral part of the
codebase.
13 years ago
Vladimír Vondruš
c5ab86794b
Relicensing to MIT/Expat license, part 3: source files.
...
Added license header also to shader sources. Hopefully it won't harm
compilation times too much.
13 years ago
Vladimír Vondruš
6a5d75d1e4
Relicensing to MIT/Expat license, part 2: headers.
13 years ago
Vladimír Vondruš
5ff59b609e
DebugTools: added ForceRenderer.
...
Visualizes force using arrow.
13 years ago
Vladimír Vondruš
ce89563aed
DebugTools: minor code cleanup.
13 years ago
Vladimír Vondruš
90dbb28763
Thorough CMakeLists cleanup.
...
* Calling enable_testing() only in root path.
* Using CORRADE_CXX_FLAGS instead of our own set to make things easier
to maintain.
* Various cleanup and reorganization.
13 years ago
Vladimír Vondruš
b5c1052c96
DebugTools: using new type aliases in whole DebugTools namespace.
13 years ago
Vladimír Vondruš
faf94c74e2
Adapted to recent meshdata/shader changes.
13 years ago
Vladimír Vondruš
2269919a99
Physics: specify AABB by its minimal and maximal dimensions.
...
Center + size was confusing for entering and also with bad
performance for computing collisions.
13 years ago
Vladimír Vondruš
60eaa3f7d4
Aaargh.
13 years ago
Vladimír Vondruš
f8d71941fd
DebugTools: assertions for non-empty resource key when it is needed.
...
Shape renderer can specify empty resource key if index buffer won't be
used.
13 years ago
Vladimír Vondruš
604c5f35ee
DebugTools: oops, swapped order of parameters.
13 years ago
Vladimír Vondruš
540c322f5b
DebugTools: support for Point shape in ShapeRenderer.
13 years ago
Vladimír Vondruš
79f77ca665
DebugTools: added point size to ShapeRendererOptions.
13 years ago
Vladimír Vondruš
6cbf3439c8
Doc++
13 years ago
Vladimír Vondruš
12e539ff12
DebugTools: missing break in switch.
...
I don't know why this didn't crash or fail miserably before.
13 years ago
Vladimír Vondruš
7d830a17aa
DebugTools: simplified and optimized internal shape rendering.
...
All rendering code computed the transformation/projection matrix the
same way, resulting in redundant calculations. Also the
`transformationMatrix` parameter of internal draw() function was never
used.
13 years ago
Vladimír Vondruš
25da008f9b
DebugTools: don't set resource key for unused index buffer for 2D box.
13 years ago
Vladimír Vondruš
4139f70146
DebugTools: minor code cleanup.
13 years ago
Vladimír Vondruš
22750b262d
Minor #include cleanup.
13 years ago
Vladimír Vondruš
99efc0cb62
DebugTools: common mesh building implementation for all shape renderers.
13 years ago
Vladimír Vondruš
96884d5ac7
DebugTools: render also non-axis-aligned boxes with proper size.
...
Yay for this convoluted mess (but hey, it's generic code working for
both 2D and 3D!).
13 years ago
Vladimír Vondruš
377170212c
DebugTools: render boxes with proper size.
...
Cube and Square primitives have 2x2(x2) size, thus to render box with
size 1x1(x1) we have to set scale to 0.5.
13 years ago