pub struct VrStereoConfig(/* private fields */);Expand description
VrStereoConfig, VR stereo rendering configuration for simulator
Implementations§
Source§impl VrStereoConfig
impl VrStereoConfig
Sourcepub unsafe fn unwrap(self) -> VrStereoConfig
pub unsafe fn unwrap(self) -> VrStereoConfig
Take the raw ffi type. Must manually free memory by calling the proper unload function
§Safety
The caller is responsible for freeing the returned value by calling the appropriate raylib unload function. Failure to do so will leak resources.
Source§impl VrStereoConfig
impl VrStereoConfig
Sourcepub fn to_raw(self) -> VrStereoConfig
pub fn to_raw(self) -> VrStereoConfig
returns the unwrapped raylib-sys object
Sourcepub unsafe fn from_raw(raw: VrStereoConfig) -> Self
pub unsafe fn from_raw(raw: VrStereoConfig) -> Self
converts raylib-sys object to a “safe” version. Make sure to call this function from the thread the resource was created.
§Safety
The caller must ensure raw is a valid, fully initialized raylib object
obtained from a raylib load function. Ownership is transferred to the
returned wrapper, which will call the appropriate unload function on drop.
Trait Implementations§
Source§impl AsMut<VrStereoConfig> for VrStereoConfig
impl AsMut<VrStereoConfig> for VrStereoConfig
Source§fn as_mut(&mut self) -> &mut VrStereoConfig
fn as_mut(&mut self) -> &mut VrStereoConfig
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRawMut<VrStereoConfig> for VrStereoConfig
impl AsRawMut<VrStereoConfig> for VrStereoConfig
Source§unsafe fn as_raw_mut(&mut self) -> &mut VrStereoConfig
unsafe fn as_raw_mut(&mut self) -> &mut VrStereoConfig
Mutable access to the wrapped raw FFI value. Read more
Source§impl AsRef<VrStereoConfig> for VrStereoConfig
impl AsRef<VrStereoConfig> for VrStereoConfig
Source§fn as_ref(&self) -> &VrStereoConfig
fn as_ref(&self) -> &VrStereoConfig
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Debug for VrStereoConfig
impl Debug for VrStereoConfig
Source§impl Deref for VrStereoConfig
impl Deref for VrStereoConfig
Source§impl DerefMut for VrStereoConfig
impl DerefMut for VrStereoConfig
Source§impl Drop for VrStereoConfig
impl Drop for VrStereoConfig
Auto Trait Implementations§
impl Freeze for VrStereoConfig
impl RefUnwindSafe for VrStereoConfig
impl Send for VrStereoConfig
impl Sync for VrStereoConfig
impl Unpin for VrStereoConfig
impl UnsafeUnpin for VrStereoConfig
impl UnwindSafe for VrStereoConfig
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