pub struct ScreenTarget<'screen> { /* private fields */ }Expand description
A render target for citro3d. Frame data will be written to this target
to be rendered on the GPU and displayed on the screen.
Trait Implementations§
Source§impl Drop for ScreenTarget<'_>
impl Drop for ScreenTarget<'_>
Source§impl<'screen> Target for ScreenTarget<'screen>
impl<'screen> Target for ScreenTarget<'screen>
Source§fn as_raw(&self) -> *mut C3D_RenderTarget
fn as_raw(&self) -> *mut C3D_RenderTarget
Return the underlying
citro3d render target for this target.Source§fn clear(&mut self, flags: ClearFlags, rgba_color: u32, depth: u32)
fn clear(&mut self, flags: ClearFlags, rgba_color: u32, depth: u32)
Clear the render target with the given 32-bit RGBA color and depth buffer value.
Use
flags to specify whether color and/or depth should be overwritten.