mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
21 lines
353 B
Rust
21 lines
353 B
Rust
|
pub mod segment;
|
||
|
|
||
|
// Library
|
||
|
use vek::*;
|
||
|
|
||
|
// Crate
|
||
|
use crate::render::{
|
||
|
self,
|
||
|
Mesh,
|
||
|
};
|
||
|
|
||
|
pub trait Meshable {
|
||
|
type Pipeline: render::Pipeline;
|
||
|
|
||
|
fn generate_mesh(&self) -> Mesh<Self::Pipeline> {
|
||
|
self.generate_mesh_with_offset(Vec3::zero())
|
||
|
}
|
||
|
|
||
|
fn generate_mesh_with_offset(&self, offs: Vec3<f32>) -> Mesh<Self::Pipeline>;
|
||
|
}
|