Moderngl

Latest version: v5.10.0

Safety actively analyzes 630094 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 17

5.6.2

* `TextureArray.build_mimpmaps()` used the wrong target when building mipmaps.
This caused the texture to corrupt with some drivers. Thanks to [Nir Aides](https://github.com/nir)
for discovering this bug.
* Docstring improvements

5.6.1

Improvements

* Added `Context.cull_face`. (`glCullFace`). An alternative to `Context.front_face` (`glFrontFace`)
* Added support for signed and unsigned integer sampler uniforms (`isampler*`, `usampler*`)
* Added support for multisampled texture array samplers
* Doc improvements

Bugs

* Transform feedback with geo shader should now property set the out primitive type.
It incorrectly assumed `POINTS` in some cases causing a gl error.
* Moderngl will now propagate the default error messages from cpython when objects cannot
be read using the buffer protocol.

5.6.0

From ModernGL 5.6 context creation is done by the [glcontext](https://github.com/moderngl/glcontext)
package. This means we can keep improving context creation without releasing new
moderngl versions. The bar for contributing to context creation is also lower.
Backends can be written in C++ or by simply using ctypes.

This version also has a lot of improvements to docsstrings, api docs and documentation in general.
Still we have a lot more work to do in this area.

Added

- Standalone `Context` can now be destroyed on all platforms
- Compute shaders can now write to textures using `Texture*.bind_to_image`
- `VertexBuffer.transform` now as a `buffer_offset` parameter
for setting the start byte offset of the output buffer.
This can be used in many creative ways in for example particle
emitting.
- `Framebuffer` supports having only depth buffer. This makes things like shadow
mapping easier to work with.
- Support for `PROGRAM_POINT_SIZE` context flag so point sizes can be set in
the vertex shader
- Scissor test support. `Framebuffer.scissor` and `Context.scissor` can now be used
to set and enable scissor testing per framebuffer.
- The `Framebuffer.clear` have an optional `color` parameter to replace the
old `red, green, blue, alpha` parameters.
- Samplers and Buffers have an `assign` method to simplify the scope creation.
- Samplers have an optional `texture` parameter that will be used together with
the sampler when given.
- The Scope's `enable_only` keyword argument is deprecated in favor of the
`enable` keyword argument.
- Buffers have a `bind` method that replaces the tuples in the VertexArray creation.
- VertexArrays have an optional `scope` property that will be used when rendering.
- The VertexArray's `vertices` property is now writeable.
- VertexArrays have an `instances` property to control the default number of
instances when rendering.
- The Context object contains the constants provided by the moderngl module.
The constants are: (TRIANGLE, LINES, DEPTH_TEST, ...)

Changed

- The `framebuffer` parameter is optional in Scopes.
- The `ctx.simple_vertex_array` is deprecated in favor of using `ctx.vertex_array` with the same parameters.
- The `prog[uniform].value = value` is deprecated in favor of using `prog[uniform] = value`.
- The `prog[uniform].write(bytes_value)` is deprecated in favor of using the `prog[uniform] = bytes_value`.

Bugs

- Fixed an issue with attribute format detection causing integer and double types to fail
- Several minor bug fixes

5.5.4

This version was originally meant to only add python 3.8 support,
but a few additions and fixes where cherry-picked from the 5.6 branch.

- Python 3.8 support
- `Vertexarray`s can now be created without content.
- `Context.blend_func` now supports separate blend functions for rgb and alpha.
- Added `Context.blend_equation` supporting separate blend equations for rgb and alpha.

5.5.3

Fixed

- Scope object uniform buffer bindings.

5.5.2

Fixed

- missing package in setup.py

Page 3 of 17

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.