Move modules to lib crate

This commit is contained in:
numzero 2024-12-30 20:10:22 +03:00
parent d17a3e3613
commit 36e0ea9432
7 changed files with 8 additions and 8 deletions

View File

@ -2,20 +2,15 @@ use std::error::Error;
use glam::{mat3, uvec2, vec3, Vec3}; use glam::{mat3, uvec2, vec3, Vec3};
use image::ImageReader; use image::ImageReader;
use present::Presenter; use raytracing3::anim;
use trace::{Tracer, TracerData, TracerEnv}; use raytracing3::present::{self, Presenter};
use raytracing3::trace::{self, Tracer, TracerData, TracerEnv};
use winit::{ use winit::{
event::{Event, WindowEvent}, event::{Event, WindowEvent},
event_loop::EventLoop, event_loop::EventLoop,
window::{Window, WindowAttributes}, window::{Window, WindowAttributes},
}; };
mod anim;
mod present;
mod trace;
pub use trace::Sphere;
struct CamLoc { struct CamLoc {
eye: Vec3, eye: Vec3,
forward: Vec3, forward: Vec3,

View File

@ -1 +1,6 @@
pub mod anim;
pub mod perlin; pub mod perlin;
pub mod present;
pub mod trace;
pub use trace::Sphere;