Struct client::view::PlantView [] [src]

pub struct PlantView {
    // some fields omitted
}

Graphical representation of a 'base::Plant'

Methods

impl PlantView
[src]

fn from_plant<F: Facade>(plant: &Plant, renderer: Rc<PlantRenderer>, facade: &F) -> Self

fn add_instance_from_pos(&mut self, chunk_pos: ChunkIndex, pos: Point3f)

fn remove_instance_at_pos(&mut self, chunk_pos: ChunkIndex)

fn draw_shadow<S: Surface>(&self, surface: &mut S, camera: &Camera)

fn draw<S: Surface>(&self, surface: &mut S, camera: &Camera, shadow_map: &Texture2d, depth_view_proj: &Matrix4<f32>, daytime: &DayTime, sun_dir: Vector3f)