pub struct Framebuffer { /* private fields */ }
Expand description
A Framebuffer representation with optional color
, depth
and stencil
attachments.
Implementations§
Source§impl Framebuffer
impl Framebuffer
Sourcepub fn default(context: &Context) -> Self
pub fn default(context: &Context) -> Self
The default Framebuffer
created during the Context
creation.
Sourcepub fn new(
context: &Context,
color: Option<Texture2D>,
depth: Option<Texture2D>,
stencil: Option<Texture2D>,
) -> Result<Self, String>
pub fn new( context: &Context, color: Option<Texture2D>, depth: Option<Texture2D>, stencil: Option<Texture2D>, ) -> Result<Self, String>
Creates a new Framebuffer
with optional color
, depth
and stencil
.
Sourcepub fn dimensions(&self) -> (usize, usize)
pub fn dimensions(&self) -> (usize, usize)
Gets the Framebuffer
’s dimension.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Framebuffer
impl RefUnwindSafe for Framebuffer
impl !Send for Framebuffer
impl !Sync for Framebuffer
impl Unpin for Framebuffer
impl UnwindSafe for Framebuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more