Trait RaylibMode3DExt

Source
pub trait RaylibMode3DExt
where Self: Sized,
{ // Provided methods fn begin_mode3D( &mut self, camera: impl Into<Camera3D>, ) -> RaylibMode3D<'_, Self> { ... } fn draw_mode3D( &mut self, camera: Camera3D, func: impl FnMut(RaylibMode3D<'_, Self>, Camera3D), ) { ... } }

Provided Methods§

Source

fn begin_mode3D( &mut self, camera: impl Into<Camera3D>, ) -> RaylibMode3D<'_, Self>

Begin 3D mode with custom camera (3D). Prefer using the closure version, RaylibMode3DExt::draw_mode3D. This version returns a handle that calls raylib_sys::EndMode3D at the end of the scope and is provided as a fallback incase you run into issues with closures(such as lifetime or performance reasons)

Source

fn draw_mode3D( &mut self, camera: Camera3D, func: impl FnMut(RaylibMode3D<'_, Self>, Camera3D), )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§