[PR #2111] Add moderngl #1674

Open
opened 2025-11-06 13:21:02 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vinta/awesome-python/pull/2111
Author: @JamesC01
Created: 7/14/2022
Status: 🔄 Open

Base: masterHead: patch-1


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)

📄 Description

What is this Python project?

This project provides modern pythonic bindings to OpenGL.

What's the difference between this Python project and similar ones?

ModernGL vs PyOpenGL

--Compared to PyOpenGL it is more pythonic, and easier to use and learn.
--Faster than PyOpenGL in certain cases.
--Less amount of code for the same behaviour.

# PyOpenGL
vbo1 = glGenBuffers(1)
GL.glBindBuffer(GL_ARRAY_BUFFER, vbo1)
GL.glBufferData(GL_ARRAY_BUFFER, b'Hello World!', GL_STATIC_DRAW)

vbo2 = glGenBuffers(1)
GL.glBindBuffer(GL_ARRAY_BUFFER, vbo2)
GL.glBufferData(GL_ARRAY_BUFFER, b'\x00' * 1024, GL_DYNAMIC_DRAW)
# ModernGL
vbo1 = ctx.buffer(b'Hello World!')
vbo2 = ctx.buffer(reserve=1024, dynamic=True)

Another pull request was made years ago here: #893 But it went stale. I'm actually surprised it isn't already on the list, it seems fairly popular, and quite nice.

Anyone who agrees with this pull request could submit an Approve review to it.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/vinta/awesome-python/pull/2111 **Author:** [@JamesC01](https://github.com/JamesC01) **Created:** 7/14/2022 **Status:** 🔄 Open **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`85e5a9d`](https://github.com/vinta/awesome-python/commit/85e5a9d3222a4a1f50f0a05644dd0ae449c33bed) Add ModernGL ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) </details> ### 📄 Description ## What is this Python project? This project provides modern _pythonic_ bindings to OpenGL. ## What's the difference between this Python project and similar ones? ### ModernGL vs PyOpenGL --Compared to PyOpenGL it is more pythonic, and easier to use and learn. --Faster than PyOpenGL in certain cases. --Less amount of code for the same behaviour. ``` # PyOpenGL vbo1 = glGenBuffers(1) GL.glBindBuffer(GL_ARRAY_BUFFER, vbo1) GL.glBufferData(GL_ARRAY_BUFFER, b'Hello World!', GL_STATIC_DRAW) vbo2 = glGenBuffers(1) GL.glBindBuffer(GL_ARRAY_BUFFER, vbo2) GL.glBufferData(GL_ARRAY_BUFFER, b'\x00' * 1024, GL_DYNAMIC_DRAW) ``` ``` # ModernGL vbo1 = ctx.buffer(b'Hello World!') vbo2 = ctx.buffer(reserve=1024, dynamic=True) ``` Another pull request was made years ago here: #893 But it went stale. I'm actually surprised it isn't already on the list, it seems fairly popular, and quite nice. Anyone who agrees with this pull request could submit an *Approve* review to it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-06 13:21:02 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-python#1674