maclarian 0.1.3

Larian file format library for Baldur's Gate 3 - PAK, LSF, LSX, GR2, DDS, and more
Documentation
//! GR2 to glTF converter
//!
//! Converts Granny2 GR2 files to glTF 2.0 format.
//!
//!

#![allow(
    clippy::cast_possible_truncation,
    clippy::cast_sign_loss,
    clippy::cast_possible_wrap,
    clippy::too_many_lines,
    clippy::collapsible_if,
    clippy::struct_excessive_bools
)]

mod convert;
mod gltf;
mod gr2_reader;
mod texture_loading;
mod textured;
mod utils;

// Crate-internal re-exports for GR2 inspection
pub(crate) use gr2_reader::Gr2Reader;

// Re-export conversion functions
pub use convert::{
    convert_gr2_bytes_to_glb, convert_gr2_bytes_to_glb_with_progress, convert_gr2_to_glb,
    convert_gr2_to_glb_with_progress, convert_gr2_to_gltf, convert_gr2_to_gltf_with_progress,
};

pub use textured::{TexturedGlbResult, convert_gr2_bytes_to_glb_with_textures};

// Re-export glTF extension types for cross-module use
pub(crate) use gltf::{Bg3MeshProfile, Bg3SkeletonProfile};