depth buffer compiles and switched to 3d vertices

This commit is contained in:
2019-09-11 22:04:43 -07:00
parent 73456dc58d
commit f6adbd80d1
12 changed files with 64 additions and 63 deletions

View File

@@ -46,16 +46,6 @@ pub mod compu_sprite;
pub mod compu_kernel;
pub mod compu_buffer;
/*
Alright, what the hell do I do next...
Canvas works, but I want to use CPU accessible buffer instead of immutable buffer
I think it would be faster if we reuse fewer oversized buffers than vis versa
*/
/// Main Entry
pub fn main() {
hprof::start_frame();
@@ -115,7 +105,6 @@ pub fn main() {
let sfml_handle = processor.get_texture_handle(String::from("sfml.png")).unwrap();
let sprite3 = Sprite::new_with_texture((0.0, -0.5), (0.5, 0.5), funky_handle.clone());
let sprite4 = Sprite::new_with_texture((0.3, 0.5), (0.9, 0.9), sfml_handle.clone());
drop(q2);
@@ -184,9 +173,13 @@ pub fn main() {
let mut canvas = CanvasFrame::new();
canvas.draw(&sprite);
canvas.draw(&sprite2);
canvas.draw(&sprite4);
canvas.draw(&sprite3);
canvas.draw(&Sprite::new_with_texture(
(0.3, -1.0),
(1.0 + elapsed_time.sin()/2.0, 1.0 + elapsed_time.sin()/2.0),
sfml_handle.clone()));
canvas.draw(&compu_sprite1);
canvas.draw(&Sprite::new_with_color((