diff --git a/libs/Difficult_Rocket_rs/src/src/lib.rs b/libs/Difficult_Rocket_rs/src/src/lib.rs index 67b9714..0dd4dbf 100644 --- a/libs/Difficult_Rocket_rs/src/src/lib.rs +++ b/libs/Difficult_Rocket_rs/src/src/lib.rs @@ -7,12 +7,13 @@ */ mod sr1_render; +mod render; use pyo3::prelude::*; #[pyfunction] fn get_version_str() -> String { - return String::from("0.1.2.0"); + return String::from("0.1.3.0"); } #[pyfunction] diff --git a/libs/Difficult_Rocket_rs/src/src/render.rs b/libs/Difficult_Rocket_rs/src/src/render.rs new file mode 100644 index 0000000..9e68fe2 --- /dev/null +++ b/libs/Difficult_Rocket_rs/src/src/render.rs @@ -0,0 +1,27 @@ +/* + * ------------------------------- + * Difficult Rocket + * Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com + * All rights reserved + * ------------------------------- + */ + +pub mod camera { + use pyo3::prelude::*; + + #[pyclass(name = "Camera_rs")] + pub struct CameraRs{ + pub dx: f64, + pub dy: f64, + pub zoom: f64, + pub max_zoom: f64, + pub min_zoom: f64, + pub window: PyObject, + } + + #[pymethods] + impl CameraRs { + + } + +}