pub struct Framebuffer<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Framebuffer<'a>
impl<'a> Framebuffer<'a>
pub fn new( ugli: &Ugli, color: ColorAttachment<'a>, depth: DepthAttachment<'a>, ) -> Self
pub fn new_color(ugli: &Ugli, color: ColorAttachment<'a>) -> Self
pub fn destruct(self) -> (ColorAttachmentRead<'a>, DepthAttachmentRead<'a>)
Methods from Deref<Target = FramebufferRead<'a>>§
pub fn read_color(&self) -> ColorData<'_>
pub fn read_color_at(&self, rect: Aabb2<usize>) -> ColorData<'_>
pub fn copy_to_texture( &self, texture: &mut Texture, source_rect: Aabb2<usize>, dest: vec2<usize>, )
pub fn size(&self) -> vec2<usize>
pub fn color_attachment(&self) -> &ColorAttachmentRead<'_>
pub fn depth_attachment(&self) -> &DepthAttachmentRead<'_>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Framebuffer<'a>
impl<'a> !RefUnwindSafe for Framebuffer<'a>
impl<'a> !Send for Framebuffer<'a>
impl<'a> !Sync for Framebuffer<'a>
impl<'a> Unpin for Framebuffer<'a>
impl<'a> !UnwindSafe for Framebuffer<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more