Vladimír Vondruš
7f89add041
Platform: make event constructors explicit.
...
Rotten code from 2010.
8 years ago
Vladimír Vondruš
d70f75a179
Platform: deprecate GlutApplication.
...
Yay, finally.
8 years ago
Vladimír Vondruš
cc1bfeb0b8
Platform: improve application tests for easier testing on Emscripten.
8 years ago
Vladimír Vondruš
6a71bf2302
doc: moved iOS/WinRT-specific docs from Sdl2App to dedicated pages.
8 years ago
Vladimír Vondruš
1260d51dc1
Trade: redesign importer file callbacks.
...
The original implementation had a few problems:
- If a file callback was set, openFile() was unconditionally calling
right into doOpenData(), making it impossible for the importer to
know the original path for correctly supplying paths to additional
files. Now, if the importer supports Feature::FileCallback,
doOpenFile() is always called. It's also possible for the importer to
save the path and then just delegate to the base doOpenFile()
implementation -- it will handle the file callbacks correctly too.
- If the importer supported neither FileCallback nor OpenData and
callbacks were set, the original doOpenFile() implementation was
called without any warning or anything, doing silently a bad thing.
Now in this case setFileCallbacks() asserts -- programmer has to
check for feature support first.
- It was not possible for the file callback to indicate file opening
failure -- in general, empty files are valid, so a nullptr ArrayView
is also a valid file. Now the callback return an Optional instead.
8 years ago
Vladimír Vondruš
e54b1fdbc4
Math: hmm, MSVC 2015 and constexpr. Fun.
8 years ago
Vladimír Vondruš
64f8a90095
Math: ability to construct a Range from std::pair.
...
Useful to feed the output from Math::minmax() directly to a Range.
8 years ago
Vladimír Vondruš
fe10dbece8
Math: use plane equation in Intersection::planeLine().
...
The old overload taking a separate "position" and normal is a deprecated
alias, passing a calculated plane equation to the new one.
8 years ago
Vladimír Vondruš
49068f066d
Math: added planeEquation() helper.
8 years ago
Vladimír Vondruš
8a35299636
Math: added Math::Range::contains() with Range as a parameter.
8 years ago
Vladimír Vondruš
6cb57534e6
Math: implemented intersect() and intersects() for Range.
...
One returns the intersection range, the other a boolean.
8 years ago
Vladimír Vondruš
59852ace85
Math: ability to slice Range into lower dimensions.
8 years ago
Vladimír Vondruš
ab91387ef7
GL: my OCD got triggered.
8 years ago
Vladimír Vondruš
7b33d67fe0
package/archlinux: lcov doesn't seem to get fixed anytime soon.
...
Using it with GCC 6, that produces correct output.
8 years ago
Vladimír Vondruš
a673e4d1d7
package/archlinux: added Clang ASan PKGBUILD.
...
Um, why this was not in the tree already?
8 years ago
Vladimír Vondruš
23dd5f21f2
Trade: fix build on GCC 4.8.
8 years ago
Vladimír Vondruš
9a13035603
SceneGraph: doc++
8 years ago
Vladimír Vondruš
d88e79cd9e
Math: new Color[34]::fromSrgb[Alpha]() and Color[34]::toSrgb[Alpha]Int().
...
For easier conversion of packed 24-/32-bit colors to the Color types.
8 years ago
Vladimír Vondruš
04f4917f7b
Math: disable floating-point vector ops on integral types.
...
Avoids accidents.
8 years ago
Vladimír Vondruš
5cb518a54e
SceneGraph: note the Animation API in the Animable class docs.
8 years ago
Vladimír Vondruš
212a01bae5
Trade: document AnimationData usage.
...
This is the last non-obvious thing that needs to be documented in order
to make the API usable.
8 years ago
Vladimír Vondruš
a45225938e
Trade: doc++
...
The reference is already above.
8 years ago
Vladimír Vondruš
fafcdcfa1c
SceneGraph: ability to affect order of items drawn by Camera.
8 years ago
Vladimír Vondruš
2d76e71abc
doc: updated changelog.
8 years ago
Vladimír Vondruš
b255f31ca4
SceneGraph: show both single and multiple inheritance in Drawable docs.
8 years ago
Vladimír Vondruš
d004db6075
SceneGraph: Camera::setViewport() and draw() don't need to be virtual.
...
If you need to override this functionality, simply call the subclass
implementation directly instead of calling it through a Camera
pointer/reference.
8 years ago
Vladimír Vondruš
37dfd0ed49
Trade: document how MeshData can be further transformed.
8 years ago
Vladimír Vondruš
c60217a6bc
AnyImageConverter: detect JPEG output as well.
8 years ago
Vladimír Vondruš
cdd469a20c
Updated README with links to changelog and community projects.
...
Because the explicit list of related projects inevitably got outdated.
8 years ago
Vladimír Vondruš
1eb4f6a081
doc: link to the changelog from the main page.
...
Because that's *important*.
8 years ago
Vladimír Vondruš
2a089f0e35
Primitives: these two were missing from 100% code coverage.
8 years ago
Vladimír Vondruš
261221c864
Math: make projection operator math consistent everywhere.
8 years ago
Vladimír Vondruš
44b059bbc5
Math/Algorithms: improve SVD docs, add a test for xform decomposition.
8 years ago
Vladimír Vondruš
3a8b1a2121
Math/Algorithms: reimplement QR decomposition using Gram-Schmidt.
...
That one is reportedly using the more stable implementation, so just use
it. The code is then also easier to follow. Also added a matrix
decomposition test case and referencing it from the docs, in case
someone would need it again.
8 years ago
Vladimír Vondruš
f9328e3f64
Math/Algorithms: update algorithm docs and make code snippets compiled.
...
And add a bunch more math equations. Of course there was deprecated
functionality being used and some stuff not even compiling.
8 years ago
Vladimír Vondruš
623786e1db
SceneGraph: make it possible to search for the Object*D/Scene*D typedefs.
...
Use code is full of these things and this makes it easier to discover.
8 years ago
Vladimír Vondruš
37e92ffd6d
Platform: fix a variable shadowing warning on MSVC.
...
I have a feeling that I fixed this once already. Where did that go?
8 years ago
Vladimír Vondruš
a46bb79a63
package/archlinux: test also w/o some shader-specific GL extensions.
...
For better coverage.
8 years ago
Vladimír Vondruš
02f0e0aeb9
Doc++
8 years ago
Vladimír Vondruš
0dae9d49c9
AnyImageImporter: adapt test to Corrade changes.
8 years ago
Vladimír Vondruš
d813ee2fde
doc: fix broken Shaders code snippets.
...
This is not how it should be.
8 years ago
Vladimír Vondruš
fd1572a3a3
Shaders: default ambient color in Phong to transparent black.
...
Makes it possible to support alpha-masked drawing out of the box,
shouldn't have any negative effect on anything else.
8 years ago
Vladimír Vondruš
0e9cb6945e
Shaders: define reasonable uniform defaults for all shaders.
...
Plus a bit of cleanup / fixing broken English.
8 years ago
Vladimír Vondruš
8e73cad1c1
Shaders: make the preprocessor less crazy and consistent with 2D.
...
What the heck. Probably 2011 me is to blame.
8 years ago
Vladimír Vondruš
daf287d2a6
Shaders: classical alpha masking support in Phong and Flat.
...
Slow and ugly, is here only for making quick'n'dirty alpha masked
drawing without a need for blending or depth sorting. Oh and also to
support the glTF alpha mask feature. Again, beware: *slow*.
8 years ago
Vladimír Vondruš
5201176cdb
Shaders: assert texturing is enabled when calling Flat::bindTexture().
8 years ago
Vladimír Vondruš
412ee9a04b
Shaders: simplify Flat shader test.
8 years ago
Vladimír Vondruš
f0a868da9c
Shaders: assert on Phong::bindTexture*() if no texture was enabled.
8 years ago
Vladimír Vondruš
bbebfa971f
Shaders: simplify the Phong construction test a bit.
...
Ugh.
8 years ago
Vladimír Vondruš
460df2b97c
Shaders: doc++
8 years ago