Vladimír Vondruš
99a22dfcd5
python: adapt to Magnum changes.
...
The Shaders classes now take a Configuration class instead of a
hard-to-distinguish list of arguments. But in Python we have named
arguments, so none of that is necessary -- I only made the arguments
explicitly keyword-only but the interface stays the same.
4 years ago
Vladimír Vondruš
f4b5d915d9
python: bind also the vector shaders.
...
Last missing piece for the Python text example.
4 years ago
Vladimír Vondruš
9b60dd30b0
python: fix inconsistencies in bound Flat and Phong feature sets.
...
Phong has instancing and texture transformation so Flat should have that
too. Also fixed a bunch of doc omissions; there's no need to bind the
POSITION attribute the hard way either.
4 years ago
Vladimír Vondruš
c2499fea34
python: no need to bind draw() again for shader subclasses.
...
The inheritance takes care of that. On the other hand it makes docs
rather noisy, but that's another problem to fix.
4 years ago
Vladimír Vondruš
2295f43873
Updated copyright year.
4 years ago
Vladimír Vondruš
7f86477c3e
Adapt to Magnum changes.
5 years ago
Vladimír Vondruš
431074a776
python: adapt to GL shader renaming.
5 years ago
Vladimír Vondruš
84f9bb2a9d
Updated copyright year.
5 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š
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š
b1d45fc85a
Updated copyright year.
6 years ago
Vladimír Vondruš
a3f6b2cce0
python: adapt to Magnum changes.
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š
106ca8f314
python: adapted to Magnum changes.
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š
9faed0651e
python: expose basics of plugin manager.
...
Just the minimum needed to get Trade::AbstractImporter running.
7 years ago
Vladimír Vondruš
e8198cb97e
python: fix PyInit_* declarations to work on Windows as well.
...
Co-authored-by: Cameron Egbert <cegbert@oculus.com>
7 years ago
Vladimír Vondruš
68e28685ff
python: fix Clang's -Wmissing-prototypes warnings.
...
This is a temporary change until a PR fixing this on pybind11 side is
merged (and a new version released).
7 years ago
Vladimír Vondruš
65d39b079e
python: make the PyNonDestructibleClass helper public.
...
We'll need it for GL holder types.
7 years ago
Vladimír Vondruš
a38b14870f
python: use writeonly properties for shader uniform setters.
...
This practically means we depend on pybind11 2.3 now.
7 years ago
Vladimír Vondruš
d050145e51
python: put everything into a single module if magnum is built statically.
...
That makes it much easier to handle in that case (because that's the
whole point of static builds) and also nicely circumvents any issues
with duplicated global data when a static lib would be linked to
multiple dynamic libraries.
7 years ago
Vladimír Vondruš
21ee51fd96
python: do as little as possible in PYBIND11_MODULE.
7 years ago
Vladimír Vondruš
6adc330e39
python: minor cleanup.
7 years ago
Vladimír Vondruš
0db853a483
python: expose the (almost) full Phong shader.
...
Except textures.
7 years ago
Vladimír Vondruš
4de30ab058
python: initial bits of the Shaders library.
7 years ago