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š
d6f1c50c34
python: I'm happy to see MSVC continuing to be consistenly underdelivering.
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
Vladimír Vondruš
ff9003d10c
python: silence annoying GCC 4.8 warnings.
7 years ago
Vladimír Vondruš
fd85c2ff81
python/corrade: huh, this one was missing.
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š
a6c8b0107e
Explicitly use C++11, like all other Magnum projects.
...
We're testing with GCC 4.8 on Travis, so we can't go with C++14 anyway.
7 years ago
Vladimír Vondruš
c536caaf13
CMake: avoid /W3 overriding warnings and enable -DUNICODE on Windows.
...
Consistent with how all other Magnum projects do it.
7 years ago
Vladimír Vondruš
1ec7269732
python: expose more from GL framebuffers.
7 years ago
Vladimír Vondruš
5a438ed474
python: um, why a 8-bit type?
7 years ago
Vladimír Vondruš
d36aa31a37
python: properly provide virtual destructors for Application classes.
...
This time I actually have to thank you, Clang.
7 years ago
Vladimír Vondruš
375a22f08d
python: suppress Clang's -Wgnu-zero-variadic-macro-arguments warning.
...
Hmm. I seem to be the only one on Earth using pybind11 with Clang. Or
does everyone else just ignore all those warnings?!
7 years ago
Vladimír Vondruš
7e057863c8
python: fix Clang's -Wself-assign-overloaded warnings.
...
It's unfortunate that the pybind11 operator helpers need this, but well.
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š
d5036b4c97
python: expose the new flags in meshtools.compile().
7 years ago
Vladimír Vondruš
fa3c0bdd05
python: better name for the gl.Framebuffer attachment owners property.
7 years ago
Vladimír Vondruš
f3c0454c72
python: ensure memory owners are compared with `is`.
...
Otherwise it gives false positives (as was the case with one
comparison).
7 years ago
Vladimír Vondruš
c40627c96c
python: better name [Strided]ArrayView memory owner property.
...
Mirroring Python's obj is not good, as the name is absolutely not
describing what it is.
7 years ago
Vladimír Vondruš
c28f36e04a
python: move refcounting in GL types also to holders.
...
Much cleaner now, yay.
7 years ago
Vladimír Vondruš
fe3837e34a
python: put all public Python headers into the same IDE folder.
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š
76d7ee0dc7
python: store memory owner references in the holder type instead.
...
Compared to having to subclass every type that can reference external
data, this has several advantages for 3rd party binding code:
* it doesn't need to worry about the additional type when binding
function arguments (currently it had to provide lambdas that accept
the PyFoo subtype instead of just Foo)
* and it can now easily bind those types also for function
return values and properties -- the return type doesn't need to be
subclassed (which in case of move-only types is practically
impossible) but instead just wrapped in a holder along with the
memory owner object reference
The new holders also assert that memory owner is always specified unless
the data is empty.
7 years ago
Vladimír Vondruš
e28e58b5b8
python: hide cryptic shit in less cryptic wrappers.
...
UGH.
7 years ago
Vladimír Vondruš
1fc142d193
python: add wrappers for often needed but terribly cryptic pybind APIs.
7 years ago