Crate elma_lgr

Source
Expand description

Crate for parsing ElastoMania LGR files.

LGR files contain PCX images.

Example usage:

use elma_lgr::Lgr;

let lgr = Lgr::load_from_file("lgr/example.lgr", false, false).unwrap();
println!("There are {} images in this LGR file", lgr.images.len());
for (name, image) in lgr.images {
    println!("{}, width = {}, height = {}", name, image.width, image.height);
}

Structs§

Enums§