Vladimír Vondruš
845b8982e5
Reducing pointer chasings, part 2: don't use `this->` so often.
...
It clarifies some things (e.g. from what base given member is). Not
changed where it would be too long to write.
13 years ago
Vladimír Vondruš
d04b308aa3
Reducing pointer chasings, part 1: method chaining via references.
...
Makes some cases less consistent (and some convenience shortcuts
impossible), but goes well with the attitude "don't use pointer when it
can't be null".
13 years ago
Vladimír Vondruš
aacb6b7041
Trade: return references, not pointers from MeshData.
...
The access methods assert that the user is querying only available data.
Also updated Primitives implementation to create MeshData when
everything is done, not creating empty MeshData and then shooting the
data through interface intended for end users.
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š
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š
b5c1052c96
DebugTools: using new type aliases in whole DebugTools namespace.
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š
4139f70146
DebugTools: minor code cleanup.
13 years ago
Vladimír Vondruš
99efc0cb62
DebugTools: common mesh building implementation for all shape renderers.
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
Vladimír Vondruš
4cc78e4cd3
Physics: debug renderer for AABB.
...
Using common base for Box and AABB, as the primitives are the same, but
only draw function differs.
14 years ago
Vladimír Vondruš
ee6d0ef438
Physics: ported debug draw to new SceneGraph.
...
Debug renderers are now subclasses of Drawable feature.
14 years ago
Vladimír Vondruš
d46bc34390
Moved flat shader from internal physics implementation to Shaders.
...
It is so general that it can be reused elsewhere.
14 years ago
Vladimír Vondruš
f85a7fc568
Physics: Minimal initial implementation of debug draw.
14 years ago