shadergraph 0.1.0

Create evolving artistic images with hot-code-reloaded Lisp and GLSL.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Build a b-tree map using a nice syntax like in other
/// languages.
#[macro_export]
macro_rules! map {
    // handle the case w/ a trailing comma by removing the comma
    ($($key:expr => $val:expr),*,) => (
        $crate::map!($($key => $val),*)
    );
    // construct a btree map
    ($($key:expr => $val:expr),*) => ({
        #[allow(unused_mut)]
        let mut b_map = ::std::collections::BTreeMap::new();
        $(b_map.insert($key, $val);)*
        b_map
    });
}