#[non_exhaustive]pub struct BatchedTextOptions {
pub outline_width: f64,
pub outline_color: Option<Color>,
pub atlas_size: u32,
}Expand description
The options object of new BatchedText( maxTextCount, maxGlyphCount, _baseMaterial, options ), vector mode only — FontAtlas is in the skip
register, so options.font != null is assumed and _vectorMode is always
true.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.outline_width: f64options.outlineWidth ?? 0.03, in SDF units.
outline_color: Option<Color>options.outlineColor, linear — new THREE.Color( hex ) applies
SRGBToLinear, so pass Color::from_hex( 0xffffff ). None is the
legacy same-colour outline.
atlas_size: u32options.atlasSize ?? 1024, forwarded to VectorFontAtlas::new.
Trait Implementations§
Source§impl Clone for BatchedTextOptions
impl Clone for BatchedTextOptions
Source§impl Debug for BatchedTextOptions
impl Debug for BatchedTextOptions
Auto Trait Implementations§
impl Freeze for BatchedTextOptions
impl RefUnwindSafe for BatchedTextOptions
impl Send for BatchedTextOptions
impl Sync for BatchedTextOptions
impl Unpin for BatchedTextOptions
impl UnsafeUnpin for BatchedTextOptions
impl UnwindSafe for BatchedTextOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more