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
Vladimír Vondruš
033e0c17bc
python: minor code cleanup.
...
Or also making the code coverage happier, since that damn thing reports
uncovered lines when the chained function call is wrapped on multiple
lines. FFS.
7 years ago
Vladimír Vondruš
3c9643ce74
python: expose textures and related APIs.
7 years ago
Vladimír Vondruš
1083e2d6aa
python: improve docs of gl.Mesh primitive setting.
7 years ago
Vladimír Vondruš
fdf5671c4c
python: implicitly test for GL errors in all tests.
7 years ago
Vladimír Vondruš
79ac50e11a
python: expose gl.Renderer.error.
...
Need that for tests.
7 years ago
Vladimír Vondruš
bbbda61f6e
magnum: no_create() constructors are useless, don't add them.
7 years ago
Vladimír Vondruš
d818e40698
python: implemented vector swizzles.
7 years ago
Vladimír Vondruš
5947b76df9
python: cross() should be in math, not a member function.
7 years ago
Vladimír Vondruš
0c9cd88fd3
python: doc++
7 years ago
Vladimír Vondruš
9faed0651e
python: expose basics of plugin manager.
...
Just the minimum needed to get Trade::AbstractImporter running.
7 years ago
Vladimír Vondruš
857062e152
python: TODOs so I don't forget.
7 years ago
Vladimír Vondruš
f9851bdb1e
python: expose shader interface APIs.
...
Custom shaders now possible.
7 years ago
Vladimír Vondruš
c8e99ca086
python: expose corrade and magnum compilation defines.
7 years ago
Vladimír Vondruš
14f7810870
python: finish the magic and docs for Matrix[34].scaling() and friends.
...
This is so ugly it's beautiful. The translation needed a metaclass to
work properly, but the undoubtedly worst/best is making those exposed
nicely in the docs.
7 years ago
Vladimír Vondruš
d50b79d698
python: expose gl.Version and related utilities.
7 years ago
Vladimír Vondruš
128c2aa0af
python: use an underscore for the less readable PixelFormat values.
7 years ago
Vladimír Vondruš
9dc569945f
python: a better way to skip GL tests.
...
Because we want to test building GLX, EGL and WGL implementations.
7 years ago
Vladimír Vondruš
067c45e792
python: skip numpy tests if it's not installed.
7 years ago
Vladimír Vondruš
0d671c823c
python: wire in the WindowlessWglApplication.
7 years ago
Vladimír Vondruš
eb6576c6af
python: sad workaround for a nasty problem deep inside pybind.
...
:(
7 years ago
Vladimír Vondruš
a62c1fe29d
python: add new sRGB PixelFormat values.
7 years ago
Cameron Egbert
14fa2247e9
python: MSVC doesn't like pure virtual methods in local classes.
7 years ago
Vladimír Vondruš
4718de1ed3
python: don't define negation on unsigned vector types.
...
Thanks, MSVC.
7 years ago