Motore grafico 2D GPU-accelerato per Python con rendering instanced, texture atlas e camera 2D.
Project description
PyBitEngine ⚡
Motore grafico 2D GPU-accelerato per Python — basato su SDL2, ModernGL, NumPy e Numba.
PyBitEngine è una libreria per sviluppatori che vogliono disegnare migliaia di oggetti 2D a 60 FPS, senza impazzire con OpenGL. Usa rendering instanced sulla GPU, texture atlas, e kernel Numba per zero overhead a runtime.
📦 Versione: 0.1.0-alpha
API in evoluzione. Feedback e contributi sono benvenuti!
✨ Cosa fa davvero (dal codice)
- Rendering GPU instanced — una draw call per migliaia di rettangoli, linee, triangoli, ellissi o sprite
- Texture Atlas — carica le immagini in un unico grande texture, con allocatore MaxRects
- Camera 2D — due versioni:
CameraGPU: FBO offscreen + blit shader (zero overhead CPU, 1 draw call extra)CameraCPU: trasformazioni esplicite (controllo totale, debug)
- Font rendering — TTF/OTF su texture atlas (Pillow + caching)
- Eventi SDL2 — tastiera, mouse, drag, scroll (tutti i tasti
PE_K_*) - Collisioni geometriche — punto, rettangolo, triangolo, ellisse, cerchio, OBB (con SAT)
- Zero allocazioni a runtime — buffer preallocati, Numba per il packing
🚀 Installazione
pip install PyBitEngine
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pybitengine-0.1.0a0.tar.gz.
File metadata
- Download URL: pybitengine-0.1.0a0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24ba1741597a9dfc327cfbf7f740f9f9134b356fa3abe679747579def33ed2ed
|
|
| MD5 |
d571713e9f2afd5b5bdf1f444b9fbf2d
|
|
| BLAKE2b-256 |
b77c35042bb8dc68ca2b58af7f1f0f48e681a536db6840cd74e20bfa56837011
|
File details
Details for the file pybitengine-0.1.0a0-py3-none-any.whl.
File metadata
- Download URL: pybitengine-0.1.0a0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f7caad4cd685d330b615b02b13742f26c0daa5ec87188578f6fc6799d80d1d9
|
|
| MD5 |
52c2a69b7e53a9896f433b0cd96d6203
|
|
| BLAKE2b-256 |
184ffafd59dd8fd6797992dd7d645c4ffb42899368382b1c458adee866788f88
|