Vladimír Vondruš
7ede64e7d4
python: whoopsie.
...
A lot of them. Though, unlike with the C++ side, I still don't think
writing exhaustive tests for all these accessors is worth the time
spent.
5 years ago
Aaron Gokaslan
31785426d8
Typo fixing
5 years ago
Aaron Gokaslan
a42018d075
python: don't carelessly copy py::args and py::kwargs.
5 years ago
Vladimír Vondruš
7f86477c3e
Adapt to Magnum changes.
5 years ago
Vladimír Vondruš
aadc437b25
python: added Vector4 from Vector3 and Vector3 from Vector2 constructors.
...
Not sure why I missed those.
5 years ago
Vladimír Vondruš
431074a776
python: adapt to GL shader renaming.
5 years ago
Vladimír Vondruš
0bf27c07f2
python: I don't understand this comment. Remove.
5 years ago
Vladimír Vondruš
8e00226da3
python: add a caster for Containers::Optional.
5 years ago
Vladimír Vondruš
ba4e20006a
python: adapt to GL::TextureFormat updates.
5 years ago
Vladimír Vondruš
98a3dcf59c
python: basic support for arbitrary types in strided array views.
...
Not ArrayView yet, and also no documentation on this whatsoever. That'll
come next. Also not everything works with arbitrary types yet,
converting from buffer protocol doesn't remember the format and
conversion to bytes doesn't take the actual type size into account
either.
5 years ago
Vladimír Vondruš
805a781f0a
python: adapt to GL::Context changes.
5 years ago
Vladimír Vondruš
cbb5358efd
python: apparently I can't name functions from(), hah.
5 years ago
Vladimír Vondruš
a2d16c15f8
python: expose Platform::GLContext as platform.{egl,wgl,glx}.Context.
...
Turning the link-time decision to a runtime decision. Crazily enough
this seems to work with no duplicate symbol issues (apart from having
to expose a function-local subclass).
5 years ago
Vladimír Vondruš
c51928c07e
python: expose gl.Context.
...
It's a bit involved as we need to ensure that gl.Context.current doesn't
outline the Application instance, so we need to:
- remember the Application object when it gets constructed (and clear
it again when it gets destructed)
- in gl.Context.current check if there's an active Application (which
means sharing data across two different Python modules, and even
though pybind11 docs suggest to "simply export a symbol", this
*cannot* possibly work in practice; instead we share data using a
Python capsule), and increase its refcount when returning the Context
instance
- decrease the Application refcount again when the Context gets
destructed
5 years ago
Vladimír Vondruš
84f9bb2a9d
Updated copyright year.
5 years ago
Aaron Gokaslan
41b720e44c
Apply clang-tidy performance fixes
6 years ago
Vladimír Vondruš
4bb19e0b3f
python: re-add an inverse of pybind11 2.2.4 workarounds for 2.6.
...
Sigh. AMAZING how they can break one thing twice in a span of a year
and a half.
This reverts commit aae98e0f02 .
6 years ago
Vladimír Vondruš
57db13422f
python: make this compatible with pybind11 2.6.
...
Pybind changed py::module to py::module_ in order to support C++
modules, adapting to that change. It still builds on older versions,
but we're using only the new APIs.
6 years ago
Vladimír Vondruš
0f98d2f172
python: expose new shaders.Phong features.
6 years ago
Vladimír Vondruš
bbb2d0a395
python: document args of gl.Renderer.enable() and friends.
6 years ago
Vladimír Vondruš
5594a64c2a
python: add new clip distance features to gl.Renderer.
6 years ago
Vladimír Vondruš
4cb109f592
python: add remaining gl.Renderer.set_blend*() overloads and a test.
6 years ago
Vladimir Gamalyan
fe559e69bd
python: expose GL::Renderer::setBlendEquation(), GL::Renderer::setBlendFunction() and related enums.
6 years ago
Vladimír Vondruš
799629e410
python: adapt to Magnum changes.
6 years ago
Vladimír Vondruš
1d278d1112
python: rename all Python.h headers to PythonBindings.h.
...
It conveys clearer what those headers are for and avoids issues where
shitty IDE indexers (Eclipse?) confuse this with Python's Python.h.
6 years ago
Vladimír Vondruš
f2cba9cb57
python: adapt to Magnum changes.
6 years ago
Vladimír Vondruš
b1d45fc85a
Updated copyright year.
6 years ago
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