veloren/voxygen/src/mesh/mod.rs

18 lines
438 B
Rust
Raw Normal View History

pub mod segment;
2019-01-23 20:01:58 +00:00
pub mod terrain;
mod vol;
use crate::render::{self, Mesh};
2019-08-19 20:09:35 +00:00
pub trait Meshable<P: render::Pipeline, T: render::Pipeline> {
type Pipeline: render::Pipeline;
type TranslucentPipeline: render::Pipeline;
2019-01-23 20:01:58 +00:00
type Supplement;
// Generate meshes - one opaque, one translucent
fn generate_mesh(
&self,
supp: Self::Supplement,
) -> (Mesh<Self::Pipeline>, Mesh<Self::TranslucentPipeline>);
}