2 Commits

Author SHA1 Message Date
78ed28a334 Split crate into lib and bin chunks
I'm going to be doing some silly WASM and ES Module stuff here shortly,
so I need a cdylib. This means I'll need the crate to actually have a
library in it.
2025-11-11 17:09:24 -06:00
6614b32969 Delete the example images 2025-11-11 17:09:15 -06:00
11 changed files with 6 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

BIN
final.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

3
src/lib.rs Normal file
View File

@@ -0,0 +1,3 @@
pub mod primitives;
pub mod renderer;
pub mod scene;

View File

@@ -1,11 +1,7 @@
mod primitives; use rustpt::primitives::{Vec2i, Vec3};
mod renderer; use rustpt::scene::{Camera, Scene};
mod scene;
use crate::primitives::{Vec2i, Vec3}; use rustpt::renderer::{RenderProperties, Tile};
use crate::scene::{Camera, Scene};
use crate::renderer::{RenderProperties, Tile};
use rand::SeedableRng; use rand::SeedableRng;
use rand::rngs::SmallRng; use rand::rngs::SmallRng;