Trait glin::OffscreenBuffer [−][src]
pub trait OffscreenBuffer {
type ColorAttach: BorrowColorAttach;
type DepthAttach: BorrowDepthAttach;
fn render_buffer(&self) -> &Fbo<Self::ColorAttach, Self::DepthAttach>;
fn color_attachment(&self, idx: usize) -> Option<&Self::ColorAttach>;
fn depth_attachment(&self) -> Option<&Self::DepthAttach>;
}Associated Types
Loading content...Required methods
fn render_buffer(&self) -> &Fbo<Self::ColorAttach, Self::DepthAttach>[src]
fn color_attachment(&self, idx: usize) -> Option<&Self::ColorAttach>[src]
fn depth_attachment(&self) -> Option<&Self::DepthAttach>[src]
Implementations on Foreign Types
impl<C: BorrowColorAttach, D: BorrowDepthAttach> OffscreenBuffer for Rc<Fbo<C, D>>[src]
impl<C: BorrowColorAttach, D: BorrowDepthAttach> OffscreenBuffer for Rc<Fbo<C, D>>[src]type ColorAttach = C
type DepthAttach = D
fn render_buffer(&self) -> &Fbo<C, D>[src]
fn color_attachment(&self, idx: usize) -> Option<&C>[src]
fn depth_attachment(&self) -> Option<&Self::DepthAttach>[src]
Implementors
impl<'a, C: BorrowColorAttach, D: BorrowDepthAttach> OffscreenBuffer for &'a Fbo<C, D>[src]
impl<'a, C: BorrowColorAttach, D: BorrowDepthAttach> OffscreenBuffer for &'a Fbo<C, D>[src]type ColorAttach = C
type DepthAttach = D
fn render_buffer(&self) -> &Fbo<C, D>[src]
fn color_attachment(&self, idx: usize) -> Option<&C>[src]
fn depth_attachment(&self) -> Option<&Self::DepthAttach>[src]
impl<'a, C: BorrowColorAttach, D: BorrowDepthAttach> OffscreenBuffer for Fbo<C, D>[src]
impl<'a, C: BorrowColorAttach, D: BorrowDepthAttach> OffscreenBuffer for Fbo<C, D>[src]