Struct glitter::framebuffer::Framebuffer [] [src]

pub struct Framebuffer { /* fields omitted */ }

An OpenGL framebuffer object.

A framebuffer can best be thought of as a 'surface' that can be rendered to. A framebuffer will contain one or more attachment points, which point to the actual container where data will really be written when drawing. Generally, a framebuffer will use a Renderbuffer to draw a final image to the screen, and a Texture2d when some post-processing effects need to be applied before displaying the final image.

A framebuffer will automatically be deleted after going out of scope.

See also

gl.build_framebuffer: Build a new framebuffer, using the FramebufferBuilder type to set attachment points.

gl.gen_framebuffer: Create a new framebuffer with no attachment points.

gl.bind_framebuffer: Bind a framebuffer to a context, returning a FramebufferBinding type.

Trait Implementations

impl Drop for Framebuffer
[src]

A method called when the value goes out of scope. Read more

impl GLObject for Framebuffer
[src]

The type of the object's internal ID.

Get a new object from an OpenGL ID. Read more

Get the object's ID.

Consume the object without cleaning up its resources, returning the object's ID. Read more