camera!
This commit is contained in:
parent
1d56398f21
commit
d0041c14f5
@ -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]
|
||||||
|
27
libs/Difficult_Rocket_rs/src/src/render.rs
Normal file
27
libs/Difficult_Rocket_rs/src/src/render.rs
Normal 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 {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user