Struct glitter::renderbuffer::Renderbuffer
[−]
[src]
pub struct Renderbuffer { // some fields omitted }
An OpenGL renderbuffer object.
A renderbuffer is essentially a 2D image that's optimized to be
a render target. Unlike a Texture2d
,
a renderbuffer is always created with uninitialized data. The only way
to 'send' an image to a renderbuffer is to render to it by attaching it
to a Framebuffer
. A renderbuffer
is most appropriate when rendering a final output image, where no extra
postprocessing is required.
A renderbuffer will automatically be deleted after going out of scope.
See also
gl.build_renderbuffer
:
Build a new renderbuffer, using the RenderbufferBuilder
type to setup storage options.
gl.gen_framebuffer
:
Create a new framebuffer with no attachment points.
gl.bind_renderbuffer
:
Bind a renderbuffer to a context, returning a RenderbufferBinding
type
Trait Implementations
impl Drop for Renderbuffer
[src]
impl GLObject for Renderbuffer
[src]
type Id = GLuint
The type of the object's internal ID.
unsafe fn from_raw(id: Self::Id) -> Self
Get a new object from an OpenGL ID. Read more
fn id(&self) -> Self::Id
Get the object's ID.
fn into_raw(self) -> Self::Id where Self: Sized
Consume the object without cleaning up its resources, returning the object's ID. Read more