Vladimír Vondruš
48b0015782
python: don't look for WindowlessGlxApplication on Apple platforms.
4 years ago
Vladimír Vondruš
1d662bcd48
CMake: add a MAGNUM_PYTHON_BINDINGS_STATIC_PLUGINS CMake option.
...
Similar to the new options for Magnum command-line utilities.
4 years ago
Vladimír Vondruš
3ce8b6d96e
python: add also windowless CGL application.
...
Not sure how I forgot this one.
4 years ago
Vladimír Vondruš
e4457383c6
python: properly expose the platform.wgl module.
4 years ago
Vladimír Vondruš
7362ff92dc
Adapt to Magnum changes.
4 years ago
Vladimír Vondruš
403689f3bf
python: skip GL text rendering test case on ES2.
...
Needs OES_mapbuffer but I don't have extension queries exposed yet.
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š
1ce696203e
python: TODOs.
4 years ago
Vladimír Vondruš
e6fdfd7d8e
python: expose the essentials from the Text library.
...
Everything needed to make a Python variant of the Text example. The
Oxygen.ttf font file is the same as in MagnumPlugins/FreeTypeFont/Test
in the magnum-plugins repository.
4 years ago
Vladimír Vondruš
716869599b
python: fix platform.Application.Configuration.title property getter.
...
Discovered this only after generating the docs, the StringView return
wasn't handled correctly. The tech debt TODO still stands, I need to
create StringView bindings already.
4 years ago
Vladimír Vondruš
04c1f712ed
python: adapt to Magnum changes in a less lazy way.
4 years ago
Vladimír Vondruš
62a07c38bc
python: adapt to Magnum changes.
4 years ago
Vladimír Vondruš
737ec6c415
Prefix all CMake options with MAGNUM_*.
4 years ago
Vladimír Vondruš
09e5e90426
python: CgltfImporter is deprecated, test with GltfImporter instead.
4 years ago
Vladimír Vondruš
ddfc5ccc36
python: adapt to STL string removal in Application classes.
...
A non-deprecated build didn't build anymore.
4 years ago
Aaron Gokaslan
ca5e16f658
python: avoid some unnecessary object copies.
4 years ago
Vladimír Vondruš
a79bc39f3e
python: ability to import images and meshes by name.
4 years ago
Vladimír Vondruš
831631e10e
python: properly test also image import level OOB checks.
4 years ago
Vladimír Vondruš
ea4e353231
python: work around GCC 4.8 being utterly confused.
4 years ago
Vladimír Vondruš
c2e2a8e520
python: expose basics of trade.AbstractSceneConverter.
4 years ago
Vladimír Vondruš
da21863ac7
python: exposed basics of trade.AbstractImageConverter.
4 years ago
Vladimír Vondruš
fda9e34b9d
python: use CgltfImporter instead of TinyGltfImporter in tests.
...
It compiles significantly faster and there's no time to waste these
days!!
4 years ago
Vladimír Vondruš
a325f3d0c1
python: minor, doc++, add TODOs.
4 years ago
Vladimír Vondruš
8e8a03e175
python: use AssertionError for trade.AbstractImporter usage errors.
...
Because using RuntimeError conflates with import failures. Also update
and fix docs to not show ValueError for where IndexError should be.
4 years ago
Vladimír Vondruš
b58b53bfda
python: lazily adapt to Corrade & Magnum std::string removal.
...
Because making & testing my own string caster is not something I'd want
to do right now (seems complicated by looking at what's all done for
std::string), the functions currently all go through a std::string
instead.
4 years ago
Vladimír Vondruš
d2f5ea43d5
CMake: use the CMAKE_FOLDER variable instead of FOLDER property.
...
It limits the support for CMake 3.12+, but it's much less verbose and I
don't expect people to use ancient CMake versions with IDEs like Xcode
or VS anyway, so this should be fine.
4 years ago
Vladimír Vondruš
2295f43873
Updated copyright year.
4 years ago
Vladimír Vondruš
0eade80567
python: expose RGB<->XYZ conversion utilities.
...
I just needed to calculate expected output for a doc snippet, that's
all.
4 years ago
Vladimír Vondruš
8938a29f67
python: expose depth/stencil PixelFormat values.
4 years ago
Vladimír Vondruš
9bc5840926
python: gl.Framebuffer has to be defined after gl.Texture2D which it uses.
...
Funnily enough wasn't a problem for the tests, only for the doc
generator?!
4 years ago
Vladimír Vondruš
79009b7d21
python: gl.TextureFormat.SRG8 is available on desktop now as well.
4 years ago
James Murphy
0e84055b49
python: expose depth/stencil gl.TextureFormat values.
...
Co-authored-by: Vladimír Vondruš <mosra@centrum.cz>
4 years ago
James Murphy
6f260b05cd
python: expose gl.Framebuffer.attach_texture().
...
Co-authored-by: Vladimír Vondruš <mosra@centrum.cz>
4 years ago
Vladimír Vondruš
1dd625a420
python: test gl.Framebuffer renderbuffer refcounting properly.
4 years ago
Vladimír Vondruš
60c48b63f7
python: document gl.Framebuffer.attach_renderbuffer() args.
4 years ago
Vladimír Vondruš
75a0564cc3
python: make it possible to set mesh index buffer.
...
Heh, funny how this is not there yet.
4 years ago
Vladimír Vondruš
71d2cf0d95
python: unify parameter naming of all math.angle() functions.
4 years ago
Vladimír Vondruš
0120b3f768
python: add remaining vector/scalar, exp and other math functions.
...
Except for binomial coefficient, there the asserts are hard to replicate
and would need a change on Magnum side.
4 years ago
Vladimír Vondruš
5994150a68
python: expose glfw.Application.{swap_interval,main_loop_iteration}.
...
The first one was for some reason not exposed because it's a write-only
property (but all shaders have writeonly properites, so what's the
problem?), the second one got added in 2020.06 but the code here was not
updated.
5 years ago
Vladimír Vondruš
2a528e23bf
python: doc++, updated credits & changelog.
5 years ago
James Murphy
40ba765fad
Don't error if path is already fullpath
...
copyfile raises a SameFileError if the source and destination are the same. In this case, the error should be ignored.
5 years ago
Aaron Gokaslan
c50a2f6851
python: add bindings for convenience color functions.
...
Co-authored-by: Vladimír Vondruš <mosra@centrum.cz>
5 years ago
Vladimír Vondruš
4d5a9ed456
python: expose viewport and exit event.
...
And also a possibility to make the window resizable on startup,
otherwise the viewport event gets never triggered.
5 years ago
Vladimír Vondruš
18ea028c8a
python: fix InputEvent.Modifier to behave like proper flags.
5 years ago
Vladimír Vondruš
8f733ca8db
python: properly expose gl.Context.flags.
5 years ago
Vladimír Vondruš
d66b581e73
python: add off-center variants of 2D/3D orthographic projection.
...
Which also fixes the build against latest Magnum master, as the
overloads are now ambiguous.
5 years ago
Vladimír Vondruš
9f08717e77
python: fixed a copypaste error in MouseMoveEvent.relative_position.
...
It returned the same as position, sigh.
5 years ago
Aaron Gokaslan
c7897429af
python: don't pass potentially huge types by value.
5 years ago