Function piston_window::text
source · pub fn text<C, G>(
color: [f32; 4],
font_size: u32,
text: &str,
cache: &mut C,
transform: [[f64; 3]; 2],
g: &mut G
) -> Result<(), <C as CharacterCache>::Error>where
C: CharacterCache,
G: Graphics<Texture = <C as CharacterCache>::Texture>,
Expand description
Draws text.