Added CheckFramebufferStatus to WebGL bindings

This commit is contained in:
Karl Zylinski
2025-12-29 17:34:01 +01:00
parent 159eab133b
commit 3f9aefda20
2 changed files with 4 additions and 0 deletions

View File

@@ -616,6 +616,9 @@ class WebGLInterface {
FramebufferTexture2D: (target, attachment, textarget, texture, level) => {
this.ctx.framebufferTexture2D(target, attachment, textarget, this.textures[texture], level);
},
CheckFramebufferStatus: (target) => {
return this.ctx.checkFramebufferStatus(target)
},
FrontFace: (mode) => {
this.ctx.frontFace(mode);
},

View File

@@ -113,6 +113,7 @@ foreign webgl {
Flush :: proc() ---
FramebufferRenderbuffer :: proc(target, attachment, renderbufertarget: Enum, renderbuffer: Renderbuffer) ---
FramebufferTexture2D :: proc(target, attachment, textarget: Enum, texture: Texture, level: i32) ---
CheckFramebufferStatus :: proc(target: Enum) -> Enum ---
FrontFace :: proc(mode: Enum) ---
GenerateMipmap :: proc(target: Enum) ---