use hecs::Entity; use super::{mesh::Mesh, material::Material, transform::Transform}; pub struct RenderJob { mesh: Mesh, material: Material, entity: Entity, pub transform: Option, pub last_transform: Option, // TODO: render interpolation } impl RenderJob { pub fn new(mesh: Mesh, material: Material, entity: Entity, transform: Option, last_transform: Option) -> Self { Self { mesh, material, entity, transform, last_transform, } } pub fn mesh(&self)-> &Mesh { &self.mesh } pub fn material(&self)-> &Material { &self.material } pub fn entity(&self)-> Entity { self.entity } }