Struct dunge::RenderBuffer
source · pub struct RenderBuffer<T, D> { /* private fields */ }
Expand description
Pair of color and depth buffer.
Implementations§
source§impl<T, D> RenderBuffer<T, D>
impl<T, D> RenderBuffer<T, D>
pub fn new(color: T, depth: D) -> Selfwhere
T: DrawTexture,
D: DrawTexture,
pub fn size(&self) -> (u32, u32)where
T: DrawTexture,
pub fn color(&self) -> &T
pub fn depth(&self) -> &D
Trait Implementations§
source§impl<T, D> AsTarget for RenderBuffer<T, D>where
T: DrawTexture,
D: DrawTexture,
impl<T, D> AsTarget for RenderBuffer<T, D>where
T: DrawTexture,
D: DrawTexture,
source§impl<T: Clone, D: Clone> Clone for RenderBuffer<T, D>
impl<T: Clone, D: Clone> Clone for RenderBuffer<T, D>
source§fn clone(&self) -> RenderBuffer<T, D>
fn clone(&self) -> RenderBuffer<T, D>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<T: Copy, D: Copy> Copy for RenderBuffer<T, D>
Auto Trait Implementations§
impl<T, D> Freeze for RenderBuffer<T, D>
impl<T, D> RefUnwindSafe for RenderBuffer<T, D>where
T: RefUnwindSafe,
D: RefUnwindSafe,
impl<T, D> Send for RenderBuffer<T, D>
impl<T, D> Sync for RenderBuffer<T, D>
impl<T, D> Unpin for RenderBuffer<T, D>
impl<T, D> UnwindSafe for RenderBuffer<T, D>where
T: UnwindSafe,
D: UnwindSafe,
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