fn init_shared_memory(app: &SyncDraw) {
    let data = app.data.borrow();
    if !data.first_instance() {
        return;
    }

    data.set_window_size(app.window.size());
    
    let (tw, th) = app.canvas.texture_size();
    let texture = app.canvas.texture_data();
    data.set_texture_data(tw, th, &texture);
}
/// Initialization that must be done after the Ui was created
/// This is only done if the instance of syncdraw is the first one created
Initialization that must be done after the Ui was created
This is only done if the instance of syncdraw is the first one created
Initialization that must be done after the Ui was created This is only done if the instance of syncdraw is the first one created
fn init_shared_memory(app: &SyncDraw) {
    let data = app.data.borrow();
    if !data.first_instance() {
        return;
    }
    data.set_window_size(app.window.size());
    let (tw, th) = app.canvas.texture_size();
    let texture = app.canvas.texture_data();
    data.set_texture_data(tw, th, &texture);
}
fn init_shared_memory ( app : & SyncDraw ) { let data = app . data . borrow ( ) ; if ! data . first_instance ( ) { return ; } data . set_window_size ( app . window . size ( ) ) ; let ( tw , th ) = app . canvas . texture_size ( ) ; let texture = app . canvas . texture_data ( ) ; data . set_texture_data ( tw , th , & texture ) ; }
Initialization that must be done after the Ui was created
This is only done if the instance of syncdraw is the first one created
Initialization that must be done after the Ui was created This is only done if the instance of syncdraw is the first one created
app
&SyncDraw