pub trait RenderTarget<Converter> {
    type RenderSurface;
    type PresentError;

    // Required methods
    fn render_surface(&self) -> &Self::RenderSurface;
    fn render_surface_mut(&mut self) -> &mut Self::RenderSurface;
    fn present(self, converter: Converter) -> Result<(), Self::PresentError>;
}
Expand description

Target to render to.

Required Associated Types§

source

type RenderSurface

Stored RenderSurface.

source

type PresentError

Error to be raised in case of a failure during presentation process.

Required Methods§

source

fn render_surface(&self) -> &Self::RenderSurface

Get reference to the render surface.

source

fn render_surface_mut(&mut self) -> &mut Self::RenderSurface

Get mutable reference to the render surface.

source

fn present(self, converter: Converter) -> Result<(), Self::PresentError>

Present stored data.

Implementors§