Struct glin::Fbo[][src]

pub struct Fbo<C = ColorAttachment> { /* fields omitted */ }

Wrapper for an OpenGL frame buffer object

Contains a depth attachment and optionally 1 or more color attachments

Methods

impl<C> Fbo<C>
[src]

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

From the src_rect rectangle to dst_rect

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

From the src_rect rectangle to dst_rect

GL id

Returns the color attachent idx if it exists

Returns the depth attachent

Returns the depth attachment texture if it exists

Mutably returns the depth attachment texture if it exists

Returns the depth attachment cubemap if it exists

impl<C: ColorAttach> Fbo<C>
[src]

Returns the default viewport for this Fbo

Returns the width for this Fbo

Returns the height for this Fbo

Returns the aspect ratio for this Fbo

Returns the width and height for this Fbo

impl Fbo
[src]

Returns the color attachent idx's texture if it exists

Mutably returns the color attachent idx's texture if it exists

Returns the color attachent idx's cubemap if it exists

Trait Implementations

impl<C> Drop for Fbo<C>
[src]

Executes the destructor for this type. Read more

impl PartialEq for Fbo
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Fbo
[src]

impl<C: ColorAttach> OffscreenBuffer for Fbo<C>
[src]

Auto Trait Implementations

impl<C = ColorAttachment> !Send for Fbo<C>

impl<C = ColorAttachment> !Sync for Fbo<C>