rgpre/lib.rs
1//! Redguard Preservation - A library for parsing ROB and 3D model files
2//!
3//! This library provides parsers for ROB (Redguard Object) files and embedded 3D model data.
4//! It can be used both as a library and as a command-line tool.
5
6/// Error types used by parsing and conversion operations.
7pub mod error;
8pub mod ffi;
9mod geometry;
10/// GLTF/GLB conversion utilities for parsed Redguard assets.
11pub mod gltf;
12/// Parsers and helpers for Redguard file formats.
13pub mod import;
14
15// Re-export main types for convenience
16pub use gltf::{
17 convert_models_to_gltf, convert_positioned_models_to_gltf, convert_wld_scene_to_gltf, to_glb,
18};
19pub use import::{model3d, rob};
20
21/// Result type for parsing operations
22pub type Result<T> = std::result::Result<T, error::Error>;