Crate elma_lgr

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§

Image
Image from LGR.
Lgr
Content of an LGR file.
Picture
Picture description.

Enums§

ClippingMode
Clipping property.
PictureKind
Kind of a picture.