[go: up one dir, main page]

gltf 0.1.1

glTF asset loader
Documentation

gltf

This library is intended to load .gltf files, a file format designed for the efficient transmission of 3D models. It is in its early stages of development, hence it is not fully-featured and future releases are not guaranteed to be backward compatible.

Documentation

Usage

Currently gltf requires the lastest nightly compiler in order to build successfully. An up-to-date compiler may be obtained using rustup or from the official downloads page. A stable version of the library is planned to be available soon.

Add gltf to the dependencies section of Cargo.toml:

[dependencies]
gltf = "0.1"

Import the crate in your library or executable:

extern crate gltf;

use gltf::Gltf;

Load a glTF file:

fn main() {
    let gltf = Gltf::new("Foo.gltf").unwrap();
}

Future Goals

  • Able to be built with a stable toolchain
  • Conforms fully to the specification
  • Type-safe constants where GLenums are currently provided