Trait rin::gl::OffscreenBuffer[][src]

pub trait OffscreenBuffer {
    type ColorAttach: BorrowColorAttach;
    type DepthAttach: BorrowDepthAttach;
    pub fn render_buffer(&self) -> &Fbo<Self::ColorAttach, Self::DepthAttach>;
pub fn color_attachment(&self, idx: usize) -> Option<&Self::ColorAttach>;
pub fn depth_attachment(&self) -> Option<&Self::DepthAttach>; }

Associated Types

type ColorAttach: BorrowColorAttach[src]

type DepthAttach: BorrowDepthAttach[src]

Loading content...

Required methods

pub fn render_buffer(&self) -> &Fbo<Self::ColorAttach, Self::DepthAttach>[src]

pub fn color_attachment(&self, idx: usize) -> Option<&Self::ColorAttach>[src]

pub fn depth_attachment(&self) -> Option<&Self::DepthAttach>[src]

Loading content...

Implementations on Foreign Types

impl<C, D> OffscreenBuffer for Rc<Fbo<C, D>> where
    C: BorrowColorAttach,
    D: BorrowDepthAttach
[src]

type ColorAttach = C

type DepthAttach = D

Loading content...

Implementors

impl<'a> OffscreenBuffer for &'a RenderPlane[src]

impl<'a> OffscreenBuffer for &'a SimpleFbo[src]

impl<'a, C, D> OffscreenBuffer for &'a Fbo<C, D> where
    C: BorrowColorAttach,
    D: BorrowDepthAttach
[src]

type ColorAttach = C

type DepthAttach = D

impl<'a, C, D> OffscreenBuffer for Fbo<C, D> where
    C: BorrowColorAttach,
    D: BorrowDepthAttach
[src]

type ColorAttach = C

type DepthAttach = D

Loading content...