#[repr(C)]pub struct tm_primitive_drawer_api {
pub stroke_lines: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, vertices: *const tm_vec3_t, num_lines: u32, color: tm_color_srgb_t, line_width: f32) -> u32>,
pub stroke_polyline: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, vertices: *const tm_vec3_t, num_vertices: u32, color: tm_color_srgb_t, line_width: f32) -> u32>,
pub stroke_triangles: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, vertices: *const tm_vec3_t, num_vertices: u32, indices: *const u32, num_indices: u32, color: tm_color_srgb_t, line_width: f32) -> u32>,
pub stroke_rect: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, width: f32, height: f32, color: tm_color_srgb_t, line_width: f32) -> u32>,
pub stroke_ellipse: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, width: f32, height: f32, divisions: u32, color: tm_color_srgb_t, line_width: f32) -> u32>,
pub stroke_cuboid: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, lower_bound: tm_vec3_t, upper_bound: tm_vec3_t, color: tm_color_srgb_t, line_width: f32) -> u32>,
pub stroke_sphere: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, radius: f32, segments: u32, parts: u32, color: tm_color_srgb_t, line_width: f32) -> u32>,
pub stroke_cone: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, length: f32, radius: f32, segments: u32, bars: u32, color: tm_color_srgb_t, line_width: f32) -> u32>,
pub stroke_octasphere: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, r: f32, d: tm_vec3_t, n: u32, color: tm_color_srgb_t, line_width: f32) -> u32>,
pub fill_triangles: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, vertices: *const tm_vec3_t, num_vertices: u32, indices: *const u32, num_indices: u32, color: tm_color_srgb_t) -> u32>,
pub reserve: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, p_bytes: u32, vbuffer: *mut tm_primitive_drawer_buffer_t, v_bytes: u32, allocator: *mut tm_allocator_i)>,
pub grow: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, res: u32, allocator: *mut tm_allocator_i)>,
}Fields§
§stroke_lines: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, vertices: *const tm_vec3_t, num_lines: u32, color: tm_color_srgb_t, line_width: f32) -> u32>§stroke_polyline: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, vertices: *const tm_vec3_t, num_vertices: u32, color: tm_color_srgb_t, line_width: f32) -> u32>§stroke_triangles: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, vertices: *const tm_vec3_t, num_vertices: u32, indices: *const u32, num_indices: u32, color: tm_color_srgb_t, line_width: f32) -> u32>§stroke_rect: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, width: f32, height: f32, color: tm_color_srgb_t, line_width: f32) -> u32>§stroke_ellipse: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, width: f32, height: f32, divisions: u32, color: tm_color_srgb_t, line_width: f32) -> u32>§stroke_cuboid: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, lower_bound: tm_vec3_t, upper_bound: tm_vec3_t, color: tm_color_srgb_t, line_width: f32) -> u32>§stroke_sphere: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, radius: f32, segments: u32, parts: u32, color: tm_color_srgb_t, line_width: f32) -> u32>§stroke_cone: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, length: f32, radius: f32, segments: u32, bars: u32, color: tm_color_srgb_t, line_width: f32) -> u32>§stroke_octasphere: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, r: f32, d: tm_vec3_t, n: u32, color: tm_color_srgb_t, line_width: f32) -> u32>§fill_triangles: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, tm: *const tm_mat44_t, vertices: *const tm_vec3_t, num_vertices: u32, indices: *const u32, num_indices: u32, color: tm_color_srgb_t) -> u32>§reserve: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, p_bytes: u32, vbuffer: *mut tm_primitive_drawer_buffer_t, v_bytes: u32, allocator: *mut tm_allocator_i)>§grow: Option<unsafe extern "C" fn(pbuffer: *mut tm_primitive_drawer_buffer_t, vbuffer: *mut tm_primitive_drawer_buffer_t, res: u32, allocator: *mut tm_allocator_i)>Trait Implementations§
Source§impl Clone for tm_primitive_drawer_api
impl Clone for tm_primitive_drawer_api
Source§fn clone(&self) -> tm_primitive_drawer_api
fn clone(&self) -> tm_primitive_drawer_api
Returns a duplicate 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 moreimpl Copy for tm_primitive_drawer_api
Auto Trait Implementations§
impl Freeze for tm_primitive_drawer_api
impl RefUnwindSafe for tm_primitive_drawer_api
impl Send for tm_primitive_drawer_api
impl Sync for tm_primitive_drawer_api
impl Unpin for tm_primitive_drawer_api
impl UnsafeUnpin for tm_primitive_drawer_api
impl UnwindSafe for tm_primitive_drawer_api
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