Begin move mesh + Vertex and Camera into core
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 20m30s
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 20m30s
This commit is contained in:
parent
2fbf4e6ce2
commit
852d72d716
11 changed files with 64 additions and 3 deletions
14
src/core/render/mesh.rs
Normal file
14
src/core/render/mesh.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
use bevy_ecs::component::Component;
|
||||
|
||||
use super::vertex::Vertex2D;
|
||||
|
||||
#[derive(Component)]
|
||||
pub struct Mesh2D {
|
||||
pub vertices: Vec<Vertex2D>,
|
||||
}
|
||||
|
||||
impl Mesh2D {
|
||||
pub fn new(vertices: Vec<Vertex2D>) -> Self {
|
||||
Self { vertices }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue