Difficult-Rocket/libs/pyglet_rs/README.md

49 lines
756 B
Markdown
Raw Normal View History

2023-03-25 20:27:22 +08:00
# pyglet_rs
This is a folder about pyglet_rs.
## What is pyglet_rs?
pyglet_rs is a python library that patches pyglet to use rust to make it faster!
2023-03-25 20:48:37 +08:00
## Notice
**This Folder may be move to an individual repo. here is just a temp location**
2023-03-25 20:27:22 +08:00
## requirements
2023-03-28 17:27:04 +08:00
- `python 3.8+`
- `pyglet 2.0+`
- `rustc 1.68.1+`
2023-03-25 20:27:22 +08:00
- no more
## status
- still writing
## usage
```python
import pyglet_rs
pyglet_rs.patch_sprite()
import pyglet
...
```
2023-03-25 20:41:08 +08:00
## how to build
```powershell
cd src
./build.ps1
```
## roadmap
- [ ] `pyglet.sprite.Sprite` patch (doing)
2023-03-26 00:53:11 +08:00
- [ ] `pyglet.math.Vec2` patch (doing)
- [ ] `pyglet.math.Vec3` patch (doing)
- [ ] `pyglet.math.Vec4` patch (doing)
- [ ] `pyglet.math.Mat3(tuple)` patch (doing)
- [ ] `pyglet.math.Mat4(tuple)` patch (doing)
2023-03-25 20:41:08 +08:00