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
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]
Implementations on Foreign Types
impl<C, D> OffscreenBuffer for Rc<Fbo<C, D>> where
C: BorrowColorAttach,
D: BorrowDepthAttach, [src]
impl<C, D> OffscreenBuffer for Rc<Fbo<C, D>> where
C: BorrowColorAttach,
D: BorrowDepthAttach, [src]type ColorAttach = C
type DepthAttach = D
pub fn render_buffer(&self) -> &Fbo<C, D>[src]
pub fn color_attachment(&self, idx: usize) -> Option<&C>[src]
pub fn depth_attachment(
&self
) -> Option<&<Rc<Fbo<C, D>> as OffscreenBuffer>::DepthAttach>[src]
&self
) -> Option<&<Rc<Fbo<C, D>> as OffscreenBuffer>::DepthAttach>
Implementors
impl<'a> OffscreenBuffer for &'a RenderPlane[src]
impl<'a> OffscreenBuffer for &'a RenderPlane[src]type ColorAttach = ColorAttachment
type DepthAttach = DepthAttachment
pub fn render_buffer(&self) -> &Fbo<ColorAttachment, DepthAttachment>[src]
pub fn color_attachment(&self, idx: usize) -> Option<&ColorAttachment>[src]
pub fn depth_attachment(&self) -> Option<&DepthAttachment>[src]
impl<'a> OffscreenBuffer for &'a SimpleFbo[src]
impl<'a> OffscreenBuffer for &'a SimpleFbo[src]type ColorAttach = ColorAttachment
type DepthAttach = DepthAttachment
pub fn render_buffer(&self) -> &Fbo<ColorAttachment, DepthAttachment>[src]
pub fn color_attachment(&self, idx: usize) -> Option<&ColorAttachment>[src]
pub fn depth_attachment(&self) -> Option<&DepthAttachment>[src]
impl<'a, C, D> OffscreenBuffer for &'a Fbo<C, D> where
C: BorrowColorAttach,
D: BorrowDepthAttach, [src]
impl<'a, C, D> OffscreenBuffer for &'a Fbo<C, D> where
C: BorrowColorAttach,
D: BorrowDepthAttach, [src]type ColorAttach = C
type DepthAttach = D
pub fn render_buffer(&self) -> &Fbo<C, D>[src]
pub fn color_attachment(&self, idx: usize) -> Option<&C>[src]
pub fn depth_attachment(
&self
) -> Option<&<&'a Fbo<C, D> as OffscreenBuffer>::DepthAttach>[src]
&self
) -> Option<&<&'a Fbo<C, D> as OffscreenBuffer>::DepthAttach>
impl<'a, C, D> OffscreenBuffer for Fbo<C, D> where
C: BorrowColorAttach,
D: BorrowDepthAttach, [src]
impl<'a, C, D> OffscreenBuffer for Fbo<C, D> where
C: BorrowColorAttach,
D: BorrowDepthAttach, [src]type ColorAttach = C
type DepthAttach = D
pub fn render_buffer(&self) -> &Fbo<C, D>[src]
pub fn color_attachment(&self, idx: usize) -> Option<&C>[src]
pub fn depth_attachment(
&self
) -> Option<&<Fbo<C, D> as OffscreenBuffer>::DepthAttach>[src]
&self
) -> Option<&<Fbo<C, D> as OffscreenBuffer>::DepthAttach>