Struct ugli::Framebuffer
source · 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> !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