[−][src]Crate easy_gltf
This crate is intended to load glTF 2.0, a file format designed for the efficient transmission of 3D assets.
It's base on gltf crate but has an easy to use output.
Installation
[dependencies]
easy-gltf="0.1.2"
Example
let scenes = easy_gltf::load("tests/cube.glb")?; for scene in scenes { println!( "Cameras: #{} Lights: #{} Models: #{}", scene.cameras.len(), scene.lights.len(), scene.models.len() ) }
Modules
model | Contains model and material |
Structs
Camera | Contains camera properties. |
Material | Contains material properties of models. |
Model | Geometry to be rendered with the given material. |
Scene | Contains cameras, models and lights of a scene. |
Enums
Light | Represents a light. |
Functions
load | Load scenes from path to a glTF 2.0. |