pub fn new(renderer: Renderer<'a>, ttf_context: &'b Sdl2TtfContext) -> Drawer<'a, 'b> {
        let font = {
            let ttf = Path::new("assets/font/RujisHandwritingFontv.2.0.ttf");
            ttf_context.load_font(&ttf, 20).unwrap()
        };
        let screen_size = renderer.window().unwrap().drawable_size();
        let tileset = TileSetSwitch::new(&renderer);
        Drawer {
            renderer: renderer,
            tileset: tileset,
            font: font,
            screen_size: screen_size,
            bar_height: 32,
            bar_color: Color::RGBA(20, 20, 20, 255),
            bar_text_color: Color::RGBA(255, 192, 0, 255),
        }
    }
/// Creates a new Drawer instance.
Creates a new Drawer instance.
Creates a new Drawer instance .
pub fn new(renderer: Renderer<'a>, ttf_context: &'b Sdl2TtfContext) -> Drawer<'a, 'b> {
        let font = {
            let ttf = Path::new("assets/font/RujisHandwritingFontv.2.0.ttf");
            ttf_context.load_font(&ttf, 20).unwrap()
        };
        let screen_size = renderer.window().unwrap().drawable_size();
        let tileset = TileSetSwitch::new(&renderer);
        Drawer {
            renderer: renderer,
            tileset: tileset,
            font: font,
            screen_size: screen_size,
            bar_height: 32,
            bar_color: Color::RGBA(20, 20, 20, 255),
            bar_text_color: Color::RGBA(255, 192, 0, 255),
        }
    }
pub fn new ( renderer : Renderer < ' a > , ttf_context : & ' b Sdl2TtfContext ) -> Drawer < ' a , ' b > { let font = { let ttf = Path :: new ( " " ) ; ttf_context . load_font ( & ttf , 20 ) . unwrap ( ) } ; let screen_size = renderer . window ( ) . unwrap ( ) . drawable_size ( ) ; let tileset = TileSetSwitch :: new ( & renderer ) ; Drawer { renderer : renderer , tileset : tileset , font : font , screen_size : screen_size , bar_height : 32 , bar_color : Color :: RGBA ( 20 , 20 , 20 , 255 ) , bar_text_color : Color :: RGBA ( 255 , 192 , 0 , 255 ) , } }
Creates a new Drawer instance.
Creates a new Drawer instance .
renderer
Renderer<'a>
ttf_context
&'b Sdl2TtfContext