Begin move mesh + Vertex and Camera into core
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 20m30s

This commit is contained in:
Florian RICHER 2025-04-04 13:38:27 +02:00
parent 2fbf4e6ce2
commit 852d72d716
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
11 changed files with 64 additions and 3 deletions

14
src/core/render/mesh.rs Normal file
View 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 }
}
}