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

type ColorAttach: BorrowColorAttach[src]

type DepthAttach: BorrowDepthAttach[src]

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]

Loading content...

Implementations on Foreign Types

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

type ColorAttach = C

type DepthAttach = D

Loading content...

Implementors

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

type ColorAttach = C

type DepthAttach = D

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

type ColorAttach = C

type DepthAttach = D

Loading content...