Struct rin::gl::BitmapFont [−][src]
pub struct BitmapFont { /* fields omitted */ }
Usually not to be used directly but internally by rin to draw_bitmap_string from a renderer
Implementations
impl BitmapFont
[src]
impl BitmapFont
[src]pub fn mesh(
&self,
string: &str,
pos: &Point<f32, U2>,
coordinate_origin: CoordinateOrigin
) -> Mesh<Vertex2DTex>
[src]
&self,
string: &str,
pos: &Point<f32, U2>,
coordinate_origin: CoordinateOrigin
) -> Mesh<Vertex2DTex>
Returns the mesh with texture coordinates to draw a string with this font
pub fn texture(&self) -> &Texture
[src]
Returns the font texture atlas
pub fn material<C>(&self, color: &C) -> Material where
C: ToRgba,
[src]
C: ToRgba,
Returns a material that can be used to draw a mesh with this font
Auto Trait Implementations
impl !RefUnwindSafe for BitmapFont
impl !Send for BitmapFont
impl !Sync for BitmapFont
impl Unpin for BitmapFont
impl !UnwindSafe for BitmapFont
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]