23 lines
No EOL
434 B
Rust
23 lines
No EOL
434 B
Rust
mod vertex;
|
|
pub use vertex::Vertex;
|
|
|
|
mod camera;
|
|
pub use camera::Camera;
|
|
|
|
mod texture;
|
|
pub use texture::{Texture, TextureManager};
|
|
|
|
mod instance;
|
|
pub use instance::{
|
|
Instance, InstanceRaw
|
|
};
|
|
use wgpu::{Device, Queue};
|
|
|
|
mod mesh;
|
|
pub use mesh::Mesh;
|
|
|
|
pub trait Renderable {
|
|
fn prepare(&mut self, device: &Device);
|
|
fn update_instances(&mut self, queue: &Queue);
|
|
fn render<'a>(&'a self, render_pass: &mut wgpu::RenderPass<'a>);
|
|
} |