ray_tracing_core 0.1.1

Ray Tracing based on Peter Shirley's mini books
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
static mut NEXT_OBJECT_ID: usize = 1;

pub struct Object {}

impl Object {
    pub fn new_id() -> usize {
        unsafe {
            let id = NEXT_OBJECT_ID;
            NEXT_OBJECT_ID += 1;
            id
        }
    }
}