Struct webgl_rc::FrameBuffer
source · [−]pub struct FrameBuffer { /* private fields */ }Implementations
sourceimpl FrameBuffer
impl FrameBuffer
pub fn new(gl: Gl) -> Result<FrameBuffer, GlError>
pub fn set_color_buffer(&mut self, texture: Option<Texture>) -> &mut Self
pub fn set_depth_buffer(&mut self, buffer: Option<DepthBuffer>) -> &mut Self
pub fn color_buffer(&self) -> Option<Texture>
pub fn depth_buffer(&self) -> Option<DepthBuffer>
Trait Implementations
sourceimpl Clone for FrameBuffer
impl Clone for FrameBuffer
sourcefn clone(&self) -> FrameBuffer
fn clone(&self) -> FrameBuffer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FrameBuffer
impl Debug for FrameBuffer
sourceimpl PartialEq<FrameBuffer> for FrameBuffer
impl PartialEq<FrameBuffer> for FrameBuffer
impl Eq for FrameBuffer
Auto Trait Implementations
impl !RefUnwindSafe for FrameBuffer
impl !Send for FrameBuffer
impl !Sync for FrameBuffer
impl Unpin for FrameBuffer
impl !UnwindSafe for FrameBuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more