Struct rin::gl::SimpleFbo[][src]

pub struct SimpleFbo { /* fields omitted */ }

Wrapper over fbo that creates attachments and fbo in one call

Also creates a secondary attachement when using multisampled buffers and automatically blits ithe multisampled to the non multisampled so ti can be drawn with a normal fragment shader

Implementations

impl SimpleFbo[src]

pub fn blit(
    &self,
    fbo2: &mut Fbo<ColorAttachment, DepthAttachment>,
    src_rect: &Rect,
    dst_rect: &Rect
)
[src]

Copy the contents of the color attachments of this Fbo to dst

From the src_rect rectangle to dst_rect

pub fn blit_depth(
    &self,
    fbo2: &mut Fbo<ColorAttachment, DepthAttachment>,
    src_rect: &Rect,
    dst_rect: &Rect
)
[src]

Copy the contents of the depth attachments of this Fbo to dst

From the src_rect rectangle to dst_rect

pub fn color_tex(&self, idx: usize) -> &Texture[src]

Returns the color attachent idx’s texture if it exists

pub fn depth(&self) -> &DepthAttachment[src]

Returns the depth attachent

pub fn viewport(&self) -> Rect[src]

Returns the default viewport for this Fbo

pub fn width(&self) -> u32[src]

Returns the width for this Fbo

pub fn height(&self) -> u32[src]

Returns the height for this Fbo

pub fn aspect_ratio(&self) -> f32[src]

Returns the aspect ratio for this Fbo

pub fn size(&self) -> (u32, u32)[src]

Returns the width and height for this Fbo

pub fn non_multisampled_buffer(&self) -> &Fbo<ColorAttachment, DepthAttachment>[src]

Returns the fbo that can be drawn

Trait Implementations

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

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

type Material = BasicMaterial<&'a Texture>

Auto Trait Implementations

impl !RefUnwindSafe for SimpleFbo

impl !Send for SimpleFbo

impl !Sync for SimpleFbo

impl Unpin for SimpleFbo

impl !UnwindSafe for SimpleFbo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]