Vladimír Vondruš
459f3b3e85
TextureTools: fixed typo.
13 years ago
Vladimír Vondruš
47fa924f2b
DebugTools: orthogonal, not parallel.
...
Another brainfart.
13 years ago
Vladimír Vondruš
4d6fa4308e
DebugTools: test orthogonality the easy way.
...
Brainfart.
13 years ago
Vladimír Vondruš
7b087425cf
DebugTools: this shouldn't be inline.
13 years ago
Vladimír Vondruš
beef4b6113
Shapes: added TODOs.
13 years ago
Vladimír Vondruš
e7dbe606cd
Shapes: fixed 2D Capsule transformation.
...
The test now passes again.
13 years ago
Vladimír Vondruš
2c1a859563
Shapes: properly test both 2D and 3D where the transform is not trivial.
...
Causes Capsule test to fail.
13 years ago
Vladimír Vondruš
b50fb5a50e
DebugTools: shape renderer for 2D/3D capsule.
13 years ago
Vladimír Vondruš
b29a68f258
Added MeshView class.
...
Allows to use one mesh configuration for different views of the data
(i.e. rendering object parts with different transformations).
13 years ago
Vladimír Vondruš
0383b345d3
Added convenience parameterless Mesh::indexType().
13 years ago
Vladimír Vondruš
39033d2480
Added Mesh::drawInternal().
...
Exposes explicit draw parameters like vertex/index offset etc.
13 years ago
Vladimír Vondruš
3c75ba7748
Primitives: 2D capsule primitive.
...
Will be used for shape debug rendering.
13 years ago
Vladimír Vondruš
51e2628486
Primitives: test Capsule with more cylinder segments.
...
Testing two face segments is not enough, as _exactly two_ vertex rings
are part of both the cylinder and cap hemispheres.
13 years ago
Vladimír Vondruš
ba72a56309
Primitives: using half length for Capsule primitive.
13 years ago
Vladimír Vondruš
92b8d7fb0b
Audio: added Context class.
13 years ago
Vladimír Vondruš
95e1ae2efc
Audio: added AbstractImporter plugin interface.
13 years ago
Vladimír Vondruš
fdf878d458
Audio: added Source class.
13 years ago
Vladimír Vondruš
0382ce70c1
Audio: added Buffer class.
13 years ago
Vladimír Vondruš
6efb83f729
Audio: added Renderer class.
13 years ago
Vladimír Vondruš
1e4680f918
Audio: verify OpenAL types.
13 years ago
Vladimír Vondruš
2b32625921
Bootstrap Audio library.
...
Will require OpenAL for now, although I don't like the state in which AL
currently is. At all. Other alternatives (later) might be FMOD or Miles.
13 years ago
Vladimír Vondruš
e167b971c7
Trade: don't forget to initialize variable.
...
It's just test, but it might fail when least expected.
13 years ago
Vladimír Vondruš
3b14a1816e
Trade: fixed wrong indentation.
13 years ago
Vladimír Vondruš
33653a3469
Math: hardened checks for proper size of primitive types.
13 years ago
Vladimír Vondruš
6b4147e25e
Doc++
13 years ago
Vladimír Vondruš
ff7402200e
Renamed Mesh variables.
...
Use leading underscore to hint that they are private variables.
13 years ago
Vladimír Vondruš
d2bdc9d28f
Text: don't use std::u32string on MinGW.
...
MinGW (or Windows at general?!) somehow doesn't expect four-byte
characters in a string and this class fails miserably when freeing
memory. Replaced with std::vector<char32_t>, it's horrendously ugly
solution, but I hope this will be resolved soon with newer MinGW GCC
(4.7.2 fails).
13 years ago
Vladimír Vondruš
23945c1d9f
Fix linker errors with Framebuffer::BufferAttachment::* on Windows.
13 years ago
Vladimír Vondruš
17de6fe51b
Install also test libs on Windows.
...
Resolves DLL hell when running tests.
13 years ago
Vladimír Vondruš
b15f3758de
Fixed NaCl compilation.
13 years ago
Vladimír Vondruš
59808c364e
Math: minor test code reorganization.
13 years ago
Vladimír Vondruš
bd00adc437
Math: test copy construction from base classes.
...
Copy construction from the same class should just work.
13 years ago
Vladimír Vondruš
7427292173
Math: test "implicitness" of value constructors.
13 years ago
Vladimír Vondruš
8669907346
Math: merge constexpr test of BoolVector into other test cases.
13 years ago
Vladimír Vondruš
bcdd0920fd
Trade: no comma at the end of enumeration list.
...
It visually punishes me.
13 years ago
Vladimír Vondruš
1102232a24
GCC 4.6 compatibility: no delegating constructors.
13 years ago
Vladimír Vondruš
7eec63afd0
Build fix.
...
I have NO IDEA how this did compile and work.
13 years ago
Vladimír Vondruš
41fd952e4a
OpenGL ES build fixes.
13 years ago
Vladimír Vondruš
6ff4b06095
SceneGraph: add just-to-be-sure assertion.
...
Now we have references all over the place, let's trust pointers even
less.
13 years ago
Vladimír Vondruš
d44f6ee94e
Add pointer conversion operator to Resource.
...
Unlike reference conversion this doesn't fire assertion when resource is
not loaded.
13 years ago
Vladimír Vondruš
a962262b61
Reducing pointer chasings, part 3g: less pointer passing in Text.
...
The testing is now slightly more sloppy due to inability to not pass any
Font or GlyphCache object. But it is actually better from user point of
view, as it is now impossible to do that by accident.
13 years ago
Vladimír Vondruš
8a8b9aca5e
Reducing pointer chasings, part 3f: less pointer passing in TextureTools.
13 years ago
Vladimír Vondruš
141a3df456
Reducing pointer chasings, part 3e: less pointer passing in DebugTools.
...
In most cases just adapted to changes in root namespace and SceneGraph.
ForceRenderer now takes const reference to force vector and additionally
disallows passing rvalue to it.
13 years ago
Vladimír Vondruš
f669dd7c23
Reducing pointer chasings, part 3d: less pointer passing in Shapes.
...
Mostly just adapted to SceneGraph changes, functions not expecting
nullptr are now taking/returning reference.
13 years ago
Vladimír Vondruš
0d3bfd4044
Reducing pointer chasings, part 3c: less pointer passing in SceneGraph.
...
Main change is that features take reference to containing object instead
of pointer, as the feature must always belong to some object. Feature
groups now return references to features and features return reference
to containing object, as these cannot be null.
Passing `*this` to AbstractFeature (and Camera[23]D) constructor might
now clash with deleted copy constructor, added templated constructor to
catch and resolve these ambiguous cases.
13 years ago
Vladimír Vondruš
2ea5b4c9ce
Reducing pointer chasings, part 3b: less pointer passing in MeshTools.
...
MeshTools::interleave() might cause porting problems, as the error is
now much more verbose if you accidentally pass Mesh* instead of Mesh&.
13 years ago
Vladimír Vondruš
e19154be5e
Reducing pointer chasings, part 3a: less pointer passing in root namespace.
...
Passing pointer as function parameter will now mean that it is possible
to pass `nullptr`. Some code examples now look like the parameter is
copied instead of referenced, which is misleading. Updated the
documentation to reflect that more clearly.
13 years ago
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š
c3a5c77f1c
Documentation clarification and fixes.
13 years ago