diff --git a/citro3d-sys/src/renderqueue.rs b/citro3d-sys/src/renderqueue.rs index cb7050f..95a239a 100644 --- a/citro3d-sys/src/renderqueue.rs +++ b/citro3d-sys/src/renderqueue.rs @@ -1,11 +1,18 @@ //! Definitions from `` +use crate::*; + +#[inline] +pub unsafe fn C3D_RenderTargetDetachOutput(target: *mut C3D_RenderTarget) { + C3D_RenderTargetSetOutput(core::ptr::null_mut(), (*target).screen, (*target).side, 0); +} + #[inline] pub unsafe fn C3D_RenderTargetClear( - target: *mut crate::C3D_RenderTarget, - clearBits: crate::C3D_ClearBits, + target: *mut C3D_RenderTarget, + clearBits: C3D_ClearBits, clearColor: u32, clearDepth: u32, ) { - crate::C3D_FrameBufClear(&mut (*target).frameBuf, clearBits, clearColor, clearDepth); + C3D_FrameBufClear(&mut (*target).frameBuf, clearBits, clearColor, clearDepth); }