re-org en App
This commit is contained in:
+9
-9
@@ -1,14 +1,14 @@
|
||||
use std::sync::Arc;
|
||||
use winit::event_loop::EventLoop;
|
||||
use winit::window::WindowBuilder;
|
||||
use wsg_lib::conf;
|
||||
use wsg_lib::context::Context;
|
||||
use wsg_lib::frame::Frame; // Import nécessaire
|
||||
use wsg_lib::material::Material;
|
||||
use wsg_lib::mesh::Mesh;
|
||||
use wsg_lib::pipeline_cache::PipelineCache;
|
||||
use wsg_lib::renderer::Renderer;
|
||||
use wsg_lib::vertex::Vertex;
|
||||
use wsg_lib::utils;
|
||||
use wsg_lib::core::Context;
|
||||
use wsg_lib::core::Frame;
|
||||
use wsg_lib::resources::Material;
|
||||
use wsg_lib::resources::Mesh;
|
||||
use wsg_lib::pipeline::PipelineCache;
|
||||
use wsg_lib::core::Renderer;
|
||||
use wsg_lib::resources::Vertex;
|
||||
|
||||
fn main() {
|
||||
println!(
|
||||
@@ -29,7 +29,7 @@ fn main() {
|
||||
// 2. Initialisation du Renderer (Il récupère tout ce dont il a besoin)
|
||||
let mut cache = PipelineCache::new();
|
||||
cache
|
||||
.register_shader("basic", conf::BASIC_SHADER_PATH)
|
||||
.register_shader("basic", utils::BASIC_SHADER_PATH)
|
||||
.unwrap();
|
||||
|
||||
let renderer = Renderer::new(&context, format);
|
||||
|
||||
Reference in New Issue
Block a user