Struct epaint::Texture [−][src]
Expand description
An 8-bit texture containing font data.
Fields
version: u64
e.g. a hash of the data. Use this to detect changes! If the texture changes, this too will change.
width: usize
height: usize
pixels: Vec<u8>
White color with the given alpha (linear space 0-255).
Implementations
Returns the textures as sRGBA
premultiplied pixels, row by row, top to bottom.
gamma
should normally be set to 1.0.
If you are having problems with egui text looking skinny and pixelated, try
setting a lower gamma, e.g. 0.5
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Texture
impl UnwindSafe for Texture
Blanket Implementations
Mutably borrows from an owned value. Read more