1
0
Fork 0

[CAMERA] Begin refactor

This commit is contained in:
Florian RICHER 2022-06-16 14:06:21 +02:00
parent 8bd4ae11e9
commit 67cd53b91e
5 changed files with 147 additions and 124 deletions

View file

@ -2,9 +2,7 @@ mod vertex;
pub use vertex::Vertex;
mod camera;
pub use camera::{
Camera, CameraUniform, CameraController
};
pub use camera::Camera;
mod texture;
pub use texture::{Texture, TextureManager};
@ -20,6 +18,6 @@ pub use mesh::Mesh;
pub trait Renderable {
fn prepare(&mut self, device: &Device);
fn update_instances(&mut self, device: &Queue);
fn update_instances(&mut self, queue: &Queue);
fn render<'a>(&'a self, render_pass: &mut wgpu::RenderPass<'a>);
}