Struct webgl_rs::renderbuffer::WebGLRSRenderbuffer
source · pub struct WebGLRSRenderbuffer<'ctx> { /* private fields */ }
Expand description
The WebGLRenderbuffer
interface is represents a buffer that can contain an image, or can be source
or target of an rendering operation.
Implementations§
source§impl<'ctx> WebGLRSRenderbuffer<'ctx>
impl<'ctx> WebGLRSRenderbuffer<'ctx>
sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Returns true if the WebGLRSRenderbuffer
object is valid and false otherwise.
sourcepub fn bind(&self, target: RenderbufferKind)
pub fn bind(&self, target: RenderbufferKind)
Binds the WebGLRSRenderbuffer
object to the given target.
Arguments
target
- specifying the binding point.
sourcepub fn attach_framebuffer(
&self,
fb_target: FramebufferKind,
attachment: Attachment,
rb_target: RenderbufferKind
)
pub fn attach_framebuffer(
&self,
fb_target: FramebufferKind,
attachment: Attachment,
rb_target: RenderbufferKind
)
Attaches this WebGLRSRenderbuffer
object to a framebuffer.
Arguments
fb_target
- specifying the binding point (target) for the framebuffer.attachment
- specifying the attachment point for the render buffer.rb_target
- specifying the binding point (target) for the render buffer.
Trait Implementations§
source§impl<'ctx> Clone for WebGLRSRenderbuffer<'ctx>
impl<'ctx> Clone for WebGLRSRenderbuffer<'ctx>
source§fn clone(&self) -> WebGLRSRenderbuffer<'ctx>
fn clone(&self) -> WebGLRSRenderbuffer<'ctx>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more