Vladimir Gamalyan
fe559e69bd
python: expose GL::Renderer::setBlendEquation(), GL::Renderer::setBlendFunction() and related enums.
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š
de204f778b
python: define Mesh early enough so AbstractShaderProgram::draw() works.
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š
b2f92b9d6e
python: avoid using deprecated functionality.
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š
9131edff97
python: doc++
7 years ago
Vladimír Vondruš
016f5954e3
python: exposed framebuffer blit.
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š
f8f0f3f1b7
python: expose framebuffer reading to an image (not a view).
7 years ago
Vladimír Vondruš
843160f58a
python: throw instead of returning a falsy value in shader APIs.
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š
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š
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š
d50b79d698
python: expose gl.Version and related utilities.
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š
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š
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š
fa3c0bdd05
python: better name for the gl.Framebuffer attachment owners property.
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š
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š
1ee3b69b98
python: added a TODO.
7 years ago
Vladimír Vondruš
3b7cfa4117
python: bind framebuffer reading.
7 years ago
Vladimír Vondruš
2ac4ca3338
python: expose basic Framebuffer.
7 years ago
Vladimír Vondruš
b5e4253960
python: expose GL::RenderbufferFormat and GL::Renderbuffer.
7 years ago
Vladimír Vondruš
2d1022b739
python: rename a header for further additions.
7 years ago
Vladimír Vondruš
bfdfad1226
python: expose GL::Renderer::setClearColor().
...
Uh oh, something's weird there.
7 years ago
Vladimír Vondruš
59969c3f67
python: expose (Mutable)ImageView.
7 years ago
Vladimír Vondruš
d5379c10eb
python: expose buffer objects owned by gl.Mesh.
...
Makes testing much easier.
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š
ecc616b48c
python: expose minimum of GL::Renderer.
7 years ago
Vladimír Vondruš
2b0dfaa22a
python: expose MeshTools::compile().
7 years ago
Vladimír Vondruš
8b1efde15f
python: add generic MeshPrimitive and MeshIndexType enums.
7 years ago
Vladimír Vondruš
34acdf6c6a
python: expose bits of GL::Mesh.
7 years ago
Vladimír Vondruš
7dadc27475
python: expose the GL::AbstractShaderProgram type.
...
The type needs to be known for Mesh::draw() and shaders later.
7 years ago
Vladimír Vondruš
03af644506
python: expose minimum of GL::DefaultFramebuffer.
...
Some non-trivial tricks had to be done in order to expose the
GL::defaultFramebuffer variable without causing leaks or double frees.
Also, the AbstractFramebuffer has a protected destructor so this needs
another special handling.
7 years ago
Vladimír Vondruš
c94598d6c1
python: expose initial GL::Buffer bits.
7 years ago
Vladimír Vondruš
aec29e7da8
python: initial bits of the GL library.
7 years ago