summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorIsaac Clayton2022-01-22 14:22:08 +0100
committerIsaac Clayton2022-01-22 14:22:08 +0100
commit7add9d30bd06be1988cbe1dd206a6ae247c1b953 (patch)
treeacc48712b4455344ccf25ce54b8c439323b3db41 /src/main.rs
parent0628e1bc68fd077ef76100b494638a7327e8410e (diff)
Quadtrees are up and running! Let's render them!
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 3078f49..6134893 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -6,9 +6,15 @@ mod render;
fn main() {
println!("Warming up...");
- let mut ctx = ctx::Ctx::new_empty();
+ let mut ctx = ctx::Ctx::new((), ctx::Basic);
+
+ let mut base = vec![];
+ for i in 0..16 {
+ base.push(i);
+ }
+
let quad: quad::Node<u8, u8> = quad::Node::new_from_square(
- &mut ctx, vec![0xFF;64],
+ &mut ctx, base,
);
// render::graphics();