Crate rael_obj

Crate rael_obj 

Source
Expand description

§Rael OBJ

A simple OBJ file loader and renderer for the terminal.

This crate provides the core functionality to load a .obj model, and render it to a list of pixels that can be drawn to a rael::Canvas.

Re-exports§

pub use crate::obj_load::draw_obj;
pub use crate::obj_load::light::Light;
pub use crate::obj_load::light::LightKind;
pub use crate::obj_load::texture::Texture;

Modules§

obj_load
This module contains the logic for loading and rendering 3D models in the OBJ format.

Structs§

Canvas
A canvas for drawing to the terminal, like a digital picasso.
Color
Represents an RGB color with red, green, and blue components.
Obj
3D model object loaded from wavefront OBJ.
TexturedVertex
Vertex data type of Obj which contains position, normal and texture data of a vertex.

Functions§

load_obj
Load a wavefront OBJ file into Rust & OpenGL friendly format.