Browse Source

Add inline detach render target fn

pull/4/head
Ian Chamberlain 2 years ago
parent
commit
4648c31467
No known key found for this signature in database
GPG Key ID: AE5484D09405AA60
  1. 13
      citro3d-sys/src/renderqueue.rs

13
citro3d-sys/src/renderqueue.rs

@ -1,11 +1,18 @@ @@ -1,11 +1,18 @@
//! Definitions from `<c3d/renderqueue.h>`
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);
}

Loading…
Cancel
Save