From d50f6ddf8a6890f62521f7675761e1b7a117b4ef Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 25 Mar 2023 20:41:08 +0800 Subject: [PATCH] add road map --- libs/pyglet_rs/README.md | 18 ++++++++++++++++++ libs/pyglet_rs/src/src/lib.rs | 1 + libs/pyglet_rs/src/src/math.rs | 8 ++++++++ 3 files changed, 27 insertions(+) create mode 100644 libs/pyglet_rs/src/src/math.rs 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 + * ------------------------------- + */ +