Implement IsBuffer, IsFramebuffer and IsRenderbuffer for WebGLRenderingContext

This commit is contained in:
Daniel 2016-05-25 14:57:34 -04:00
parent 2a2b88f42c
commit c017438428
6 changed files with 50 additions and 4 deletions

View file

@ -95,6 +95,14 @@ impl WebGLBuffer {
let _ = self.renderer.send(CanvasMsg::WebGL(WebGLCommand::DeleteBuffer(self.id)));
}
}
pub fn is_deleted(&self) -> bool {
self.is_deleted.get()
}
pub fn target(&self) -> Option<u32> {
self.target.get()
}
}
impl Drop for WebGLBuffer {