Replace vulkano by wgpu
This commit is contained in:
parent
d058c30d02
commit
9fff11fb19
25 changed files with 2561 additions and 3047 deletions
|
@ -1,5 +0,0 @@
|
|||
use engine_math::Transform;
|
||||
|
||||
pub trait Entity {
|
||||
fn get_transform(&mut self) -> &mut Transform;
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
mod entity;
|
||||
mod player;
|
||||
|
||||
pub use entity::Entity;
|
||||
pub use player::Player;
|
|
@ -1,21 +0,0 @@
|
|||
use crate::entities::Entity;
|
||||
use engine_math::Transform;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Player {
|
||||
transform: Transform,
|
||||
}
|
||||
|
||||
impl Player {
|
||||
pub fn new() -> Player {
|
||||
Player {
|
||||
transform: Transform::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Entity for Player {
|
||||
fn get_transform(&mut self) -> &mut Transform {
|
||||
&mut self.transform
|
||||
}
|
||||
}
|
11
src/main.rs
11
src/main.rs
|
@ -1,7 +1,4 @@
|
|||
mod entities;
|
||||
|
||||
use engine_core::test;
|
||||
|
||||
fn main() {
|
||||
test();
|
||||
}
|
||||
fn main() {
|
||||
let engine = engine_core::Engine::new("Test 123");
|
||||
engine.run();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue