This commit is contained in:
shenjack-mac 2023-01-30 11:57:14 +08:00
parent 1d56398f21
commit d0041c14f5
2 changed files with 29 additions and 1 deletions

View File

@ -7,12 +7,13 @@
*/ */
mod sr1_render; mod sr1_render;
mod render;
use pyo3::prelude::*; use pyo3::prelude::*;
#[pyfunction] #[pyfunction]
fn get_version_str() -> String { fn get_version_str() -> String {
return String::from("0.1.2.0"); return String::from("0.1.3.0");
} }
#[pyfunction] #[pyfunction]

View File

@ -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 {
}
}