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