Enum tetra::graphics::text::FontTextureStyle
source · #[non_exhaustive]
pub enum FontTextureStyle {
Normal,
Premultiplied,
}
Expand description
Different ways that font textures can be generated.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Normal
An RGBA texture will be used, with the RGB channels set to 1.0, and the alpha channels set to the amount of coverage.
Premultiplied
An RGBA texture will be used, with all channels set to the amount
of coverage. This will require the BlendState
to be configured for premultiplied alpha.
Trait Implementations§
source§impl Clone for FontTextureStyle
impl Clone for FontTextureStyle
source§fn clone(&self) -> FontTextureStyle
fn clone(&self) -> FontTextureStyle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FontTextureStyle
impl Debug for FontTextureStyle
source§impl PartialEq<FontTextureStyle> for FontTextureStyle
impl PartialEq<FontTextureStyle> for FontTextureStyle
source§fn eq(&self, other: &FontTextureStyle) -> bool
fn eq(&self, other: &FontTextureStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.