Struct amethyst_renderer::Renderer [−][src]
pub struct Renderer {
pub factory: Factory,
// some fields omitted
}Generic renderer.
Fields
factory: Factory
The gfx factory used for creation of buffers.
Methods
impl Renderer[src]
impl Rendererpub fn new() -> Result<Renderer>[src]
pub fn new() -> Result<Renderer>Creates a Renderer with default window settings.
pub fn build_with_loop(el: EventsLoop) -> RendererBuilder[src]
pub fn build_with_loop(el: EventsLoop) -> RendererBuilderCreates a new RendererBuilder, equivalent to RendererBuilder::new().
pub fn build() -> RendererBuilder[src]
pub fn build() -> RendererBuilderCreates a new RendererBuilder, equivalent to RendererBuilder::new().
pub fn create_mesh<T>(&mut self, mb: MeshBuilder<T>) -> Result<Mesh> where
T: VertexDataSet, [src]
pub fn create_mesh<T>(&mut self, mb: MeshBuilder<T>) -> Result<Mesh> where
T: VertexDataSet, Builds a new mesh from the given vertices.
pub fn create_texture<D, T>(
&mut self,
tb: TextureBuilder<D, T>
) -> Result<Texture> where
D: AsRef<[T]>,
T: Pod + Copy, [src]
pub fn create_texture<D, T>(
&mut self,
tb: TextureBuilder<D, T>
) -> Result<Texture> where
D: AsRef<[T]>,
T: Pod + Copy, Builds a new texture resource.
pub fn create_pipe<B, P>(&mut self, pb: B) -> Result<P> where
P: PolyPipeline,
B: PipelineBuild<Pipeline = P>, [src]
pub fn create_pipe<B, P>(&mut self, pb: B) -> Result<P> where
P: PolyPipeline,
B: PipelineBuild<Pipeline = P>, Builds a new renderer pipeline.
pub fn draw<'a, P>(&mut self, pipe: &mut P, data: <P as PipelineData<'a>>::Data) where
P: PolyPipeline, [src]
pub fn draw<'a, P>(&mut self, pipe: &mut P, data: <P as PipelineData<'a>>::Data) where
P: PolyPipeline, Draws a scene with the given pipeline.
pub fn events_mut(&mut self) -> &mut EventsLoop[src]
pub fn events_mut(&mut self) -> &mut EventsLoopRetrieve a mutable borrow of the events loop
pub fn resize<P: PolyPipeline>(&mut self, pipe: &mut P, new_size: (u32, u32))[src]
pub fn resize<P: PolyPipeline>(&mut self, pipe: &mut P, new_size: (u32, u32))Resize the targets associated with this renderer and pipeline.
pub fn window(&self) -> &WinitWindow[src]
pub fn window(&self) -> &WinitWindowRetrieves an immutable borrow of the window.
No operations require a mutable borrow as of 2017-10-02