pub fn new(target: Tgt, fonts: &'c Font, colours: &'c colour::Palette<Fg, Bg>) -> Result<Self> {
        let mut canvas = target.into_canvas()?;
        canvas.set_blend_mode(sdl2::render::BlendMode::Blend);
        let textures = Tgt::texture_creator(&canvas);
        Ok(Self {
            canvas: RefCell::new(canvas),
            textures,
            fonts,
            colours,
        })
    }
/// Creates a new rendering manager over a given rendering target.
///
/// # Errors
///
/// Fails if we can't construct the requisite canvas for the target.  
Creates a new rendering manager over a given rendering target.
Creates a new rendering manager over a given rendering target .
pub fn new(target: Tgt, fonts: &'c Font, colours: &'c colour::Palette<Fg, Bg>) -> Result<Self> {
        let mut canvas = target.into_canvas()?;
        canvas.set_blend_mode(sdl2::render::BlendMode::Blend);
        let textures = Tgt::texture_creator(&canvas);
        Ok(Self {
            canvas: RefCell::new(canvas),
            textures,
            fonts,
            colours,
        })
    }
pub fn new ( target : Tgt , fonts : & ' c Font , colours : & ' c colour :: Palette < Fg , Bg > ) -> Result < Self > { let mut canvas = target . into_canvas ( ) ? ; canvas . set_blend_mode ( sdl2 :: render :: BlendMode :: Blend ) ; let textures = Tgt :: texture_creator ( & canvas ) ; Ok ( Self { canvas : RefCell :: new ( canvas ) , textures , fonts , colours , } ) }
Creates a new rendering manager over a given rendering target.
Creates a new rendering manager over a given rendering target .
target
Tgt
fonts
&'c Font
colours
&'c colour::Palette<Fg, Bg>
errors
Fails if we can't construct the requisite canvas for the target.
Fails if we can ' t construct the requisite canvas for the target .