projects
/
mandelwow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Load the c64 font as a raw bitmap without using the image crate.
[mandelwow.git]
/
mandelwow.rs
diff --git
a/mandelwow.rs
b/mandelwow.rs
index d3b86e6ee1aa0e49779386826dfee6797fc32bc9..e5c883ac8c7342564f1e49cf17cfd6f82f93f7fd 100644
(file)
--- a/
mandelwow.rs
+++ b/
mandelwow.rs
@@
-29,11
+29,11
@@
fn mand(cx: f32, cy: f32) -> [f32; 3] {
*/
pub fn program(display: &glium::Display) -> glium::Program {
*/
pub fn program(display: &glium::Display) -> glium::Program {
-
return
program!(display,
- 1
4
0 => {
+ program!(display,
+ 1
0
0 => {
vertex: include_str!("mandelwow.vert"),
fragment: include_str!("mandelwow.frag"),
vertex: include_str!("mandelwow.vert"),
fragment: include_str!("mandelwow.frag"),
- }).unwrap()
;
+ }).unwrap()
}
fn mandel<U>(display: &glium::Display,
}
fn mandel<U>(display: &glium::Display,
@@
-129,6
+129,6
@@
pub fn draw(display: &glium::Display,
perspective: camera.get_perspective(),
};
perspective: camera.get_perspective(),
};
- mandel(
&display, &mut frame, &
program, &uniforms, bounds, z0);
+ mandel(
display, &mut frame,
program, &uniforms, bounds, z0);
}
}
}
}