Struct ugli::FramebufferRead
source · pub struct FramebufferRead<'a> { /* private fields */ }
Implementations§
source§impl<'a> FramebufferRead<'a>
impl<'a> 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> )
source§impl<'a> FramebufferRead<'a>
impl<'a> FramebufferRead<'a>
pub fn new( ugli: &Ugli, color: ColorAttachmentRead<'a>, depth: DepthAttachmentRead<'a> ) -> Self
pub fn new_color(ugli: &Ugli, color: ColorAttachmentRead<'a>) -> Self
pub fn size(&self) -> vec2<usize>
pub fn color_attachment(&self) -> &ColorAttachmentRead<'_>
pub fn depth_attachment(&self) -> &DepthAttachmentRead<'_>
pub fn destruct(self) -> (ColorAttachmentRead<'a>, DepthAttachmentRead<'a>)
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for FramebufferRead<'a>
impl<'a> !Send for FramebufferRead<'a>
impl<'a> !Sync for FramebufferRead<'a>
impl<'a> Unpin for FramebufferRead<'a>
impl<'a> !UnwindSafe for FramebufferRead<'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