summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 14595c7b8af0cc7f554bd31ae4f5e962ac97e06e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
mod quad;
mod ctx;
mod step;
mod render;

fn main() {
    println!("Warming up...");

    let mut ctx = ctx::Ctx::new((), ctx::Basic);

    let mut base = vec![];
    for i in 0..16 {
        base.push(i);
    }

    let mut quad: quad::Node<u8, u8> = quad::Node::new_from_square(
        &mut ctx, base,
    );

    println!("{:#?}", quad);

    // TODO: this does not work correctly
    // for x in -2..2 {
    //     for y in -2..2 {
    //         let (nquad, color) = quad.sample_color(&mut ctx, x, y);
    //         quad = nquad;
    //         println!("{}", color[0]);
    //     }
    // }

    // render::graphics();
}