Vladimír Vondruš
8de3e91ce3
python: fix build against latest Magnum.
...
Not sure what the extra {}s were doing there.
6 years ago
Vladimír Vondruš
86bac39471
Adapt to Corrade changes.
6 years ago
Vladimír Vondruš
e222ba7a32
python: provide a better error if draw_event() is not overriden.
...
Otherwise it yells at the user that "pure virtual method called", and
that's no good.
6 years ago
Vladimír Vondruš
a3f6b2cce0
python: adapt to Magnum changes.
6 years ago
Vladimír Vondruš
7aef7bd4c8
python: this was a bug in my test.
...
Interestingly enough, on Py3.7 this passed. Not exactly sure why.
6 years ago
Vladimír Vondruš
500311fa7c
python: add APIs for Color from/to sRGB int.
...
I need that for generating colormaps.
6 years ago
Vladimír Vondruš
de204f778b
python: define Mesh early enough so AbstractShaderProgram::draw() works.
6 years ago
Vladimír Vondruš
38d56059e2
python: adapt to changes in the Primitives library.
...
Again without keeping backwards compatibility, sorry.
6 years ago
Vladimír Vondruš
2045e22463
python: properly check also level bounds in importers.
6 years ago
Vladimír Vondruš
d2dc71369c
python: adapt to Magnum changes.
...
Same as before, this is a breaking change -- sorry.
6 years ago
Vladimír Vondruš
a470eae5f1
python: adapt to Trade::MeshDataXD deprecation.
...
Right now there's no deprecation logic in place for the Python bindings,
so this is a breaking change. Sorry about that.
6 years ago
Vladimír Vondruš
45eb76446b
python: expose trade.abstractImporter.imageXd_level_count().
6 years ago
Vladimír Vondruš
b2f92b9d6e
python: avoid using deprecated functionality.
6 years ago
Vladimír Vondruš
5d7e5c5b1c
python: adapt to Magnum changes.
6 years ago
Vladimír Vondruš
15d0714d90
python: adapt to Magnum changes.
6 years ago
Vladimír Vondruš
c560b8085a
python: added gl.AbstractTexture.unbind().
6 years ago
Vladimír Vondruš
3a0c478834
python: a bunch of new keys in SDL and GLFW.
6 years ago
Vladimír Vondruš
97062bcc04
python: expose new Matrix4.normal_matrix() and related APIs.
...
Should have gone into 2019.10 already, but I forgot.
7 years ago
Vladimír Vondruš
9131edff97
python: doc++
7 years ago
Vladimír Vondruš
016f5954e3
python: exposed framebuffer blit.
7 years ago
Vladimír Vondruš
875a81803b
python: avoid clash with the builtin platform module when running tests.
7 years ago
Vladimír Vondruš
7068412b7c
platform: expose Sdl2Application::mainLoopIteration().
7 years ago
Vladimír Vondruš
41609aceef
python: don't try to find applications that aren't on target platform.
...
Makes the CMake log output less confusing.
7 years ago
Vladimír Vondruš
e334cc17b2
python: expose remaining primitives.
7 years ago
Vladimír Vondruš
70fe4e8a25
python: add more getters to trade.MeshDataXD.
...
Was not sure if properties or methods, but this thing is scheduled for a
rewrite anyway.
7 years ago
Vladimír Vondruš
d67a1d27ed
python: primitives.square_solid() didn't have a default argument.
7 years ago
Vladimír Vondruš
d2bec5eba7
python: fix build in a CMake subproject.
7 years ago
Vladimír Vondruš
106ca8f314
python: adapted to Magnum changes.
7 years ago
Vladimír Vondruš
a6dd10ae69
python: we don't use pybind11 exceptions anymore, so this is not needed.
...
Also fixes cmpilation with pybind11 >= 2.4.0.
7 years ago
Vladimír Vondruš
34ca50dca8
python: expose application properties as actual properties.
7 years ago
Vladimír Vondruš
d5bbd193f3
python: minor cleanup.
7 years ago
Vladimír Vondruš
6bce9fbeb2
python: remove the black magic from magnum.platform.
...
Implicitly importing whole toolkits was not a good idea.
7 years ago
Vladimír Vondruš
59a2773808
python: expose mesh import.
7 years ago
Vladimír Vondruš
9afe7ebe50
python: expose key and scroll events.
7 years ago
Vladimír Vondruš
f20c5beb76
python: move away from concrete pybind exceptions.
...
Use only py::error_already_set as that's the least heavy of them. Also
changed all occurences of "throw" to "raise" so next time I'm doing a
prune of all C++ exceptions for good, those are easy to find.
7 years ago
Vladimír Vondruš
7da09f9080
python: expose basic image import in trade.
...
Quite a huge commit because it all needs to be tested together.
7 years ago
Vladimír Vondruš
f8f0f3f1b7
python: expose framebuffer reading to an image (not a view).
7 years ago
Vladimír Vondruš
e07e61c1ef
python: expose Image.
...
Owning counterpart to ImageView.
7 years ago
Vladimír Vondruš
432d424a77
python: make conversion from a mutable image view implicit.
7 years ago
Vladimír Vondruš
2eebb45557
python: don't keep a reference to owner for empty array views.
...
We don't need to reference anything from it anyway.
7 years ago
Vladimír Vondruš
e18fbdbb16
python: raise an exception on plugin load/unload failure.
...
Because that makes sense. Returning some None doesn't.
7 years ago
Vladimír Vondruš
6dd3e2fd6d
python: those pluginmanager APIs should have been properties.
...
Not functions.
7 years ago
Vladimír Vondruš
859309b07c
python: actually install the corrade.pluginmanager module.
...
Pusing this to master was a misteak. Yum.
7 years ago
Vladimír Vondruš
843160f58a
python: throw instead of returning a falsy value in shader APIs.
7 years ago
Vladimír Vondruš
3f0aa76c28
python: expose Shaders::Flat.
7 years ago
Vladimír Vondruš
313e74142c
python: expose texturing in Phong.
7 years ago
Vladimír Vondruš
02fc8900b9
python: expose Phong tangents and vertex colors.
7 years ago
Vladimír Vondruš
40891858d6
python: raise Python exceptions for shader API usage failures.
7 years ago
Vladimír Vondruš
563f5222b5
python: better way to expose shader attributes.
...
Using the newly added GL::Attribute -> GL::DynamicAttribute constructor.
Much less redundant, much less error-prone.
7 years ago
Vladimír Vondruš
7f82f76eba
python: test gl.AbstractShaderProgram.set_uniform() as well.
7 years ago