Vladimír Vondruš
6d8639cc76
Physics shape rework #7 : renamed Physics namespace to Shapes.
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š
c534a71401
DebugTools: preparation for ability to render also solid shapes.
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š
4f4e1230d7
DebugTools: added support for 2D spheres into ShapeRenderer.
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š
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š
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š
b5c1052c96
DebugTools: using new type aliases in whole DebugTools namespace.
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š
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š
6cbf3439c8
Doc++
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
Vladimír Vondruš
c3bbf03917
DebugTools: using wireframe primitives in ShapeRenderer.
13 years ago
Vladimír Vondruš
ea2faa91b7
Explicit offset also in Mesh::addVertexBuffer().
...
The offset is present in all other functions, adding it just for
consistency (although it is redundant here).
13 years ago
Vladimír Vondruš
dc5a4d83d9
Removing IndexedMesh, part 5: merged documentation, removed IndexedMesh.
13 years ago
Vladimír Vondruš
22d405809f
DebugTools: ShapeRenderer cleanup.
...
* Added missing forward declarations.
* Added getters and setters to ShapeRendererOptions class.
* Cube primitive is indexed, modified the mesh creation accordingly. It
now uses MeshTools, link the library to DebugTools.
* Simplified resource handling so it's now handled in one place. It
still needs to be thought out better.
14 years ago
Vladimír Vondruš
c0a3ce84a4
Moved Profiler and debug draw from Physics to new DebugTools library.
...
Also cleaned up the code and split renderer creation from resource
manager.
14 years ago