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
Vladimír Vondruš
c3bbf03917
DebugTools: using wireframe primitives in ShapeRenderer.
13 years ago
Vladimír Vondruš
f07e4743f9
Ability to specify index range in Mesh::setIndexBuffer().
13 years ago
Vladimír Vondruš
b9513d28cb
Merged index type setting to Mesh::setIndexBuffer() and added offset.
...
Now addVertexBuffer() etc. and setIndexBuffer() are even more similar.
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š
55477b98fe
DebugTools: don't use CORRADE_INTERNAL_ASSERT() for user-triggered error.
...
What was I thinking... Also updated the documentation to warn about it.
13 years ago
Vladimír Vondruš
fecb5eec29
DebugTools: simplified renderers example code.
...
ResourceManager::set() can autodetect the type passed and it now has
also more convenient overload.
13 years ago
Vladimír Vondruš
64a0645724
DebugTools: ObjectShape must contain shape when creating renderer.
13 years ago
Vladimír Vondruš
196c68ccf1
DebugTools: added missing 3D alternatives.
...
They are implemented internally, but I somehow forgot to add them to the
switch.
13 years ago
Vladimír Vondruš
dc5a4d83d9
Removing IndexedMesh, part 5: merged documentation, removed IndexedMesh.
13 years ago
Vladimír Vondruš
d175dd1054
Updated workarounds for Doxygen 1.8.2.
...
Removed workarounds for alias templates, variadic templates and
anonymous enums, but 1.8.2 has some bug with forward declarations
causing classes to appear in default namespace, breaking
cross-references.
13 years ago
Vladimír Vondruš
d5a8cc0e3c
DebugTools: fixed compilation of Profiler.
...
Some change in recent GCC (4.7.2) caused this to fail building, now
using duration_cast<microseconds>() instead of microseconds(). Also
cleaned up the code by importing std::duration prefix.
13 years ago
Vladimír Vondruš
a4da7b764a
Adapted to Corrade changes.
14 years ago
Vladimír Vondruš
ca24fe8f41
Mesh index type cleanup.
...
Using specialized enum instead of global Type and shitload of type
traits to handle it correctly. Removed TypeTraits::indexType() and
cleaned up MeshTools::compressIndices() while at it.
14 years ago
Vladimír Vondruš
eaa87147d4
Doc++
...
This is how it should like after debug renderer rework. Don't know what
got forgotten or messed up.
14 years ago
Vladimír Vondruš
b8ae50267f
DebugTools: ObjectRenderer class.
...
Visualizes object position, rotation and size. Common usage as with
ShapeRenderer, common documentation extended and moved to new
`debug-tools` page.
14 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