Type Alias rust_raylib::texture::RenderTexture2D
source · pub type RenderTexture2D = RenderTexture;Expand description
RenderTexture2D, same as RenderTexture
Aliased Type§
struct RenderTexture2D { /* private fields */ }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.