diff --git a/libs/pyglet_rs/README.md b/libs/pyglet_rs/README.md index f92ee29..2a128c6 100644 --- a/libs/pyglet_rs/README.md +++ b/libs/pyglet_rs/README.md @@ -22,3 +22,21 @@ pyglet_rs.patch_sprite() import pyglet ... ``` + +## how to build + +```powershell +cd src +./build.ps1 +``` + +## roadmap + +- [ ] `pyglet.sprite.Sprite` patch (doing) + +- [ ] `pyglet.math.Vec2` patch +- [ ] `pyglet.math.Vec3` patch +- [ ] `pyglet.math.Vec4` patch +- [ ] `pyglet.math.Mat3(tuple)` patch +- [ ] `pyglet.math.Mat4(tuple)` patch + diff --git a/libs/pyglet_rs/src/src/lib.rs b/libs/pyglet_rs/src/src/lib.rs index 1e4469b..8d7d1a9 100644 --- a/libs/pyglet_rs/src/src/lib.rs +++ b/libs/pyglet_rs/src/src/lib.rs @@ -6,6 +6,7 @@ * ------------------------------- */ +mod math; mod sprite; use pyo3::prelude::*; diff --git a/libs/pyglet_rs/src/src/math.rs b/libs/pyglet_rs/src/src/math.rs new file mode 100644 index 0000000..f8cf460 --- /dev/null +++ b/libs/pyglet_rs/src/src/math.rs @@ -0,0 +1,8 @@ +/* + * ------------------------------- + * Difficult Rocket + * Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com + * All rights reserved + * ------------------------------- + */ +