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

    let texture_data = data.texture_data();
    let (w, h) = data.texture_size();
    app.canvas.set_texture_data(w, h, &texture_data);
    app.canvas.render();

    let (w, h) = data.window_size();
    app.window.set_size(w, h);
    app.canvas.resize();
}
/// Load the shared data into the instance
/// This is only done if the instance of syncdraw is not the first one created
Load the shared data into the instance
This is only done if the instance of syncdraw is not the first one created
Load the shared data into the instance This is only done if the instance of syncdraw is not the first one created
fn load_shared_memory(app: &SyncDraw) {
    let data = app.data.borrow();
    if data.first_instance() {
        return;
    }
    let texture_data = data.texture_data();
    let (w, h) = data.texture_size();
    app.canvas.set_texture_data(w, h, &texture_data);
    app.canvas.render();
    let (w, h) = data.window_size();
    app.window.set_size(w, h);
    app.canvas.resize();
}
fn load_shared_memory ( app : & SyncDraw ) { let data = app . data . borrow ( ) ; if data . first_instance ( ) { return ; } let texture_data = data . texture_data ( ) ; let ( w , h ) = data . texture_size ( ) ; app . canvas . set_texture_data ( w , h , & texture_data ) ; app . canvas . render ( ) ; let ( w , h ) = data . window_size ( ) ; app . window . set_size ( w , h ) ; app . canvas . resize ( ) ; }
Load the shared data into the instance
This is only done if the instance of syncdraw is not the first one created
Load the shared data into the instance This is only done if the instance of syncdraw is not the first one created
app
&SyncDraw