pub fn new(system: &TextSystem, texture: F, text: &str) -> TextDisplay<F> {
        let mut text_display = TextDisplay {
            context: system.context.clone(),
            texture,
            vertex_buffer: None,
            index_buffer: None,
            total_text_width: 0.0,
            text_height: 0.0,
            is_empty: true,
        };

        text_display.set_text(text);

        text_display
    }
/// Builds a new text display that allows you to draw text.
Builds a new text display that allows you to draw text.
Builds a new text display that allows you to draw text .
pub fn new(system: &TextSystem, texture: F, text: &str) -> TextDisplay<F> {
        let mut text_display = TextDisplay {
            context: system.context.clone(),
            texture,
            vertex_buffer: None,
            index_buffer: None,
            total_text_width: 0.0,
            text_height: 0.0,
            is_empty: true,
        };
        text_display.set_text(text);
        text_display
    }
pub fn new ( system : & TextSystem , texture : F , text : & str ) -> TextDisplay < F > { let mut text_display = TextDisplay { context : system . context . clone ( ) , texture , vertex_buffer : None , index_buffer : None , total_text_width : 0.0 , text_height : 0.0 , is_empty : true , } ; text_display . set_text ( text ) ; text_display }
Builds a new text display that allows you to draw text.
Builds a new text display that allows you to draw text .
system
&TextSystem
texture
F
text
&str
system
&TextSystem
texture
F
text
&str