Struct glium::framebuffer::RenderBuffer
[−]
[src]
pub struct RenderBuffer { // some fields omitted }
A render buffer is similar to a texture, but is optimized for usage as a draw target.
Contrary to a texture, you can't sample or modify the content of the RenderBuffer
.
Methods
impl RenderBuffer
[src]
fn new<F>(facade: &F, format: UncompressedFloatFormat, width: u32, height: u32) -> Result<RenderBuffer, CreationError> where F: Facade
Builds a new render buffer.
Methods from Deref<Target=RenderBufferAny>
fn get_dimensions(&self) -> (u32, u32)
Returns the dimensions of the render buffer.
fn get_samples(&self) -> Option<u32>
Returns the number of samples of the render buffer, or None
if multisampling isn't
enabled.
fn get_context(&self) -> &Rc<Context>
Returns the context used to create this renderbuffer.
fn kind(&self) -> TextureKind
Returns the kind of renderbuffer.
Trait Implementations
impl<'a> ToColorAttachment<'a> for &'a RenderBuffer
[src]
fn to_color_attachment(self) -> ColorAttachment<'a>
Builds the ColorAttachment
.
impl Deref for RenderBuffer
[src]
type Target = RenderBufferAny
The resulting type after dereferencing
fn deref(&self) -> &RenderBufferAny
The method called to dereference a value
impl DerefMut for RenderBuffer
[src]
fn deref_mut(&mut self) -> &mut RenderBufferAny
The method called to mutably dereference a value