pub trait Target {
// Required method
fn as_raw(&self) -> *mut C3D_RenderTarget;
// Provided method
fn clear(&mut self, flags: ClearFlags, rgba_color: u32, depth: u32) { ... }
}Expand description
A render target for citro3d. Frame data will be written to this target
to be rendered on the GPU and used as a source for further rendering.
Required Methods§
Sourcefn as_raw(&self) -> *mut C3D_RenderTarget
fn as_raw(&self) -> *mut C3D_RenderTarget
Return the underlying citro3d render target for this target.
Provided Methods§
Sourcefn 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.