Rust's import system dictates that we must make directories rather than use individual files to provide a clean public interface

pull/3195/head
David Golembiowski 2020-05-01 18:11:44 -04:00
parent 2d43a24475
commit 778c3afbbb
52 changed files with 75 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1 @@
pub use self::structs::{Camera};

Binary file not shown.

View File

@ -0,0 +1,2 @@
mod anim;

View File

@ -0,0 +1,2 @@
mod blob;

View File

@ -0,0 +1,2 @@
mod bone;

View File

@ -0,0 +1,2 @@
mod camera;

View File

@ -0,0 +1,2 @@
mod color;

View File

@ -0,0 +1,2 @@
mod face;

View File

@ -0,0 +1,2 @@
mod key;

View File

@ -0,0 +1,2 @@
mod light;

View File

@ -0,0 +1,2 @@
mod material;

View File

@ -0,0 +1,2 @@
mod matrix;

View File

@ -0,0 +1,2 @@
mod memory;

View File

@ -0,0 +1,2 @@
mod mesh;

View File

@ -0,0 +1,2 @@
mod meta;

View File

@ -0,0 +1,2 @@
mod node;

View File

@ -0,0 +1,2 @@
mod plane;

View File

@ -0,0 +1,2 @@
mod quaternion;

View File

@ -0,0 +1,7 @@
use crate::vec;
#[derive(Clone, Debug, Copy)]
pub struct Quaternion {
_coordinates: vec::Vector4d
}

View File

@ -0,0 +1,2 @@
mod ray;

View File

@ -0,0 +1,2 @@
mod scene;

View File

@ -0,0 +1,2 @@
mod string;

View File

@ -0,0 +1,2 @@
mod texel;

View File

@ -0,0 +1,2 @@
mod texture;

View File

@ -0,0 +1,2 @@
mod transform;

View File

@ -0,0 +1,2 @@
mod vec;

View File

@ -9,6 +9,13 @@ struct Vector3d {
z: f32
}
struct Vector4d {
x: f32,
y: f32,
z: f32,
w: f32
}
impl Vector2d {
pub fn new(x_f32: f32, y_f32: f32) -> Vector2d {
Vector2d {
@ -27,3 +34,15 @@ impl Vector3d {
}
}
}
impl Vector4d {
pub fn new(x_f32: f32, y_f32: f32, z_f32: f32, w_f32: f32) -> Vector4d {
Vector4d {
x: x_f32,
y: y_f32,
z: z_f32,
w: w_f32
}
}
}

View File

@ -0,0 +1,2 @@
mod vertex;