Struct machinery_api::plugins::ui::TtfBakerApi [−][src]
#[repr(C)]pub struct TtfBakerApi { pub bake: Option<unsafe extern "C" fn(ttf: *const u8, font_size: f32, font_scales: *const f32, num_scales: u32, texture_identifier: u32, pixels: *mut u8, width: u32, height: u32, ranges: *const TtfRangeT, num_ranges: u32, extract_glyph_segments: bool, allocator: *mut AllocatorI, font_bytes: *mut u64) -> *mut FontT>, }
Fields
bake: Option<unsafe extern "C" fn(ttf: *const u8, font_size: f32, font_scales: *const f32, num_scales: u32, texture_identifier: u32, pixels: *mut u8, width: u32, height: u32, ranges: *const TtfRangeT, num_ranges: u32, extract_glyph_segments: bool, allocator: *mut AllocatorI, font_bytes: *mut u64) -> *mut FontT>Implementations
pub unsafe fn bake(
&self,
ttf: *const u8,
font_size: f32,
font_scales: *const f32,
num_scales: u32,
texture_identifier: u32,
pixels: *mut u8,
width: u32,
height: u32,
ranges: *const TtfRangeT,
num_ranges: u32,
extract_glyph_segments: bool,
allocator: *mut AllocatorI,
font_bytes: *mut u64
) -> *mut FontT
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for TtfBakerApi
impl Send for TtfBakerApi
impl Sync for TtfBakerApi
impl Unpin for TtfBakerApi
impl UnwindSafe for TtfBakerApi
Blanket Implementations
Mutably borrows from an owned value. Read more