Skip to content

Abstract the arcade.gl package in order to support different rendering backends #2666

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: development
Choose a base branch
from

Conversation

Cleptomania
Copy link
Member

This PR takes the arcade.gl package and makes the base classes provided by it abstract.

It then adds a new arcade.gl.backends package, and moves the existing OpenGL specific functionality into arcade.gl.backends.gl. This means that in the top level arcade.gl package, there is no usage of ctypes or pyglet.gl imports, or any OpenGL specific functionality. It is mostly just defining the base types as abstract classes, and the only functionality provided at that level of the package is things that only operate on the abstract classes.

There is a new provider module added, which each backend must implement a Provider in order to provide context creation functions.

@Cleptomania Cleptomania requested a review from einarf May 4, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant