31 lines
526 B
Rust
Executable File
31 lines
526 B
Rust
Executable File
use hecs::Entity;
|
|
|
|
use super::{mesh::Mesh, material::Material};
|
|
|
|
pub struct RenderJob {
|
|
mesh: Mesh,
|
|
material: Material,
|
|
entity: Entity,
|
|
}
|
|
|
|
impl RenderJob {
|
|
pub fn new(mesh: Mesh, material: Material, entity: Entity) -> Self {
|
|
Self {
|
|
mesh,
|
|
material,
|
|
entity,
|
|
}
|
|
}
|
|
|
|
pub fn mesh(&self)-> &Mesh {
|
|
&self.mesh
|
|
}
|
|
|
|
pub fn material(&self)-> &Material {
|
|
&self.material
|
|
}
|
|
|
|
pub fn entity(&self)-> Entity {
|
|
self.entity
|
|
}
|
|
} |