add default draw target impl

This commit is contained in:
Carter Anderson 2020-03-10 01:51:59 -07:00
parent 1ac33b1477
commit 4eaf730b8a
2 changed files with 7 additions and 14 deletions

View file

@ -18,10 +18,12 @@ pub trait DrawTarget {
);
fn setup(
&mut self,
world: &World,
resources: &Resources,
renderer: &mut dyn Renderer,
pipeline_handle: Handle<PipelineDescriptor>,
);
_world: &World,
_resources: &Resources,
_renderer: &mut dyn Renderer,
_pipeline_handle: Handle<PipelineDescriptor>,
) {
}
fn get_name(&self) -> String;
}

View file

@ -58,15 +58,6 @@ impl DrawTarget for MeshesDrawTarget {
}
}
fn setup(
&mut self,
_world: &World,
_resources: &Resources,
_renderer: &mut dyn Renderer,
_pipeline_handle: Handle<PipelineDescriptor>,
) {
}
fn get_name(&self) -> String {
resource_name::draw_target::MESHES.to_string()
}