1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::{color::Color, point::Point2D}; pub struct Vertex { pub point: Point2D, pub rgba: Color, pub uv: Point2D, } impl Vertex { pub fn new(point: Point2D, rgba: Color, uv: Point2D) -> Self { Self { point, rgba, uv } } }