vulkano_test/src/core/render/mesh.rs
Florian RICHER 852d72d716
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 20m30s
Begin move mesh + Vertex and Camera into core
2025-04-04 13:38:27 +02:00

14 lines
242 B
Rust

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 }
}
}