Trait devotee_backend::RenderTarget
source · 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§
sourcetype RenderSurface
type RenderSurface
Stored RenderSurface
.
sourcetype PresentError
type PresentError
Error to be raised in case of a failure during presentation process.
Required Methods§
sourcefn render_surface(&self) -> &Self::RenderSurface
fn render_surface(&self) -> &Self::RenderSurface
Get reference to the render surface.
sourcefn render_surface_mut(&mut self) -> &mut Self::RenderSurface
fn render_surface_mut(&mut self) -> &mut Self::RenderSurface
Get mutable reference to the render surface.
sourcefn present(self, converter: Converter) -> Result<(), Self::PresentError>
fn present(self, converter: Converter) -> Result<(), Self::PresentError>
Present stored data.