Struct nannou::ui::backend::glium::glium::framebuffer::StencilRenderBuffer [−][src]
pub struct StencilRenderBuffer { /* 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 StencilRenderBuffer
directly.
Methods
impl StencilRenderBuffer
[src]
impl StencilRenderBuffer
pub fn new<F>(
facade: &F,
format: StencilFormat,
width: u32,
height: u32
) -> Result<StencilRenderBuffer, CreationError> where
F: Facade + ?Sized,
[src]
pub fn new<F>(
facade: &F,
format: StencilFormat,
width: u32,
height: u32
) -> Result<StencilRenderBuffer, CreationError> where
F: Facade + ?Sized,
Builds a new render buffer.
Methods from Deref<Target = RenderBufferAny>
pub fn get_dimensions(&self) -> (u32, u32)
[src]
pub fn get_dimensions(&self) -> (u32, u32)
Returns the dimensions of the render buffer.
pub fn get_samples(&self) -> Option<u32>
[src]
pub fn get_samples(&self) -> Option<u32>
Returns the number of samples of the render buffer, or None
if multisampling isn't
enabled.
pub fn get_context(&self) -> &Rc<Context>
[src]
pub fn get_context(&self) -> &Rc<Context>
Returns the context used to create this renderbuffer.
pub fn kind(&self) -> TextureKind
[src]
pub fn kind(&self) -> TextureKind
Returns the kind of renderbuffer.
Trait Implementations
impl DerefMut for StencilRenderBuffer
[src]
impl DerefMut for StencilRenderBuffer
fn deref_mut(&mut self) -> &mut RenderBufferAny
[src]
fn deref_mut(&mut self) -> &mut RenderBufferAny
Mutably dereferences the value.
impl GlObject for StencilRenderBuffer
[src]
impl GlObject for StencilRenderBuffer
type Id = u32
The type of identifier for this object.
fn get_id(&self) -> u32
[src]
fn get_id(&self) -> u32
Returns the id of the object.
impl<'a> ToStencilAttachment<'a> for &'a StencilRenderBuffer
[src]
impl<'a> ToStencilAttachment<'a> for &'a StencilRenderBuffer
fn to_stencil_attachment(self) -> StencilAttachment<'a>
[src]
fn to_stencil_attachment(self) -> StencilAttachment<'a>
Builds the StencilAttachment
.
impl Deref for StencilRenderBuffer
[src]
impl Deref for StencilRenderBuffer
type Target = RenderBufferAny
The resulting type after dereferencing.
fn deref(&self) -> &RenderBufferAny
[src]
fn deref(&self) -> &RenderBufferAny
Dereferences the value.
Auto Trait Implementations
impl !Send for StencilRenderBuffer
impl !Send for StencilRenderBuffer
impl !Sync for StencilRenderBuffer
impl !Sync for StencilRenderBuffer