[][src]Function gfx_glyph::default_transform

pub fn default_transform<D: IntoDimensions>(d: D) -> [[f32; 4]; 4]

Returns the default 4 dimensional matrix orthographic projection used for drawing.

Example

let projection = gfx_glyph::default_transform((screen_width, screen_height));

Example

let projection = gfx_glyph::default_transform(&gfx_color);