Implement WebGL GetRenderbufferParameter

This needed a bump of gleam to version 0.4.33
This commit is contained in:
Fausto Núñez Alberro 2018-04-12 14:24:51 +02:00
parent 05fe8fa08d
commit 58760d91d1
No known key found for this signature in database
GPG key ID: 475A94D9B398B2DF
8 changed files with 158 additions and 129 deletions

View file

@ -159,6 +159,17 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
self.base.GetFramebufferAttachmentParameter(cx, target, attachment, pname)
}
#[allow(unsafe_code)]
/// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.7
unsafe fn GetRenderbufferParameter(
&self,
cx: *mut JSContext,
target: u32,
pname: u32
) -> JSVal {
self.base.GetRenderbufferParameter(cx, target, pname)
}
/// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.3
fn ActiveTexture(&self, texture: u32) {
self.base.ActiveTexture(texture)