gltf_kun 0.0.4

Extensible library for building glTF toolchains.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! A target format to import from or export to.

use anyhow::Result;

pub mod glb;
pub mod gltf;
pub mod glxf;

/// Format -> Graph.
pub trait ImportFormat<T> {
    fn import(self) -> Result<T>;
}

/// Graph -> Format.
pub trait ExportFormat<T> {
    fn export(doc: T) -> Result<Box<Self>>;
}