polyscope/
lib.rs

1extern crate libc;
2
3mod bindings;
4pub mod imgui;
5pub mod point_cloud_func;
6pub use crate::point_cloud_func::PointCloudImpl as point_cloud;
7pub use crate::point_cloud_func::ScalarFunc as pc_scalar;
8pub use crate::point_cloud_func::Vec3Func as pc_vec3;
9
10pub fn init() {
11    unsafe {
12        bindings::c_init();
13    }
14}
15
16pub fn register_callback(function: fn()) {
17    unsafe {
18        bindings::c_register_callback(function as *mut libc::c_void);
19    }
20}
21
22pub fn show() {
23    unsafe {
24        bindings::c_show();
25    }
26}