INNER CODE UNIT · Rust

prefs

elringus/sprite-dicing · crates/abi/src/lib.rs:281

    fn prefs() -> sd_prefs {
        sd_prefs {
            unit_size: 1,
            padding: 0,
            uv_inset: 0.0,
            trim_transparent: true,
            atlas_size_limit: 8,
            atlas_square: false,
            atlas_pot: false,
            ppu: 1.0,
            pivot: sd_pivot { x: 0.5, y: 0.5 },
            on_progress: None,
            user_data: ptr::null_mut(),
        }
    }

    fn sprite(id: &CStr, pixels: &[sd_pixel], width: u32, height: u32) -> sd_source_sprite {
        sd_source_sprite {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…