From 4648c31467ef51f9c028c7e8f931c54d6a84a082 Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Sat, 3 Sep 2022 11:26:25 -0400 Subject: [PATCH] Add inline detach render target fn --- citro3d-sys/src/renderqueue.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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); }