From b37fd661649af21541aefc0cd13d5278c456df9c Mon Sep 17 00:00:00 2001 From: mitchellhansen Date: Sun, 18 Jul 2021 17:54:41 -0700 Subject: [PATCH] . --- src/runtime/system.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/runtime/system.rs b/src/runtime/system.rs index d72c92d..932c285 100644 --- a/src/runtime/system.rs +++ b/src/runtime/system.rs @@ -24,7 +24,6 @@ use crate::physics::state::PhysicsState; use crate::render::state::RenderState; use crate::render::system::{ImguiGenericOutputLine, ImguiPerformanceProfilerLine}; use crate::runtime::state::RuntimeState; -use crate::geometry::create_quad_mesh; use crate::geometry::RawMesh; pub fn quad_color(color: [f32; 4]) -> [[f32; 4]; 4] { @@ -130,7 +129,7 @@ pub fn runtime_spawn( match entity.type_name.as_ref() { "Sprite" => { - let raw_mesh = create_quad_mesh(); + let mesh_name = entity.mesh.clone().unwrap(); let raw_mesh = match runtime_state.get_mesh(mesh_name.as_str()) { @@ -199,6 +198,10 @@ pub fn runtime_spawn( let collider = ColliderBuilder::capsule_y(2.0, 1.0).build(); + + //let mut vec = Vec::new(); + //vec.push() + let gpu_mesh_buffer = renderer .upload_mesh_to_buffer( raw_mesh,