// This whole file is strongly inspired by: https://github.com/jeaye/q3/blob/master/src/client/ui/ttf/glyph.rs
// available under the BSD-3 licence.
// It has been modified to work with gl-rs, nalgebra, and rust-freetype
useglamx::Vec2;/// A ttf glyph.
pubstructGlyph{#[doc(hidden)]pubtex: Vec2,
#[doc(hidden)]pubadvance: Vec2,
#[doc(hidden)]pubdimensions: Vec2,
#[doc(hidden)]puboffset: Vec2,
#[doc(hidden)]pubbuffer:Vec<u8>,
}implGlyph{/// Creates a new empty glyph.
pubfnnew(tex: Vec2, advance: Vec2, dimensions: Vec2, offset: Vec2, buffer:Vec<u8>)-> Glyph{
Glyph {
tex,
advance,
dimensions,
offset,
buffer,}}}