pub struct RenderTexture { /* private fields */ }
Expand description
RenderTexture, fbo for texture rendering
Implementations§
Source§impl RenderTexture
impl RenderTexture
Sourcepub fn as_raw(&self) -> &RenderTexture
pub fn as_raw(&self) -> &RenderTexture
Get the ‘raw’ ffi type Take caution when cloning so it doesn’t outlive the original
Sourcepub fn as_raw_mut(&mut self) -> &mut RenderTexture
pub fn as_raw_mut(&mut self) -> &mut RenderTexture
Get the ‘raw’ ffi type Take caution when cloning so it doesn’t outlive the original
Sourcepub unsafe fn from_raw(raw: RenderTexture) -> Self
pub unsafe fn from_raw(raw: RenderTexture) -> Self
Convert a ‘raw’ ffi object to a safe wrapper
§Safety
- The raw object must be correctly initialized
- The raw object should be unique. Otherwise, make sure its clones don’t outlive the newly created object.
Trait Implementations§
Source§impl Debug for RenderTexture
impl Debug for RenderTexture
Auto Trait Implementations§
impl Freeze for RenderTexture
impl RefUnwindSafe for RenderTexture
impl Send for RenderTexture
impl Sync for RenderTexture
impl Unpin for RenderTexture
impl UnwindSafe for RenderTexture
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