mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-22 22:35:19 +00:00
Added CheckFramebufferStatus to WebGL bindings
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
1
vendor/wasm/WebGL/webgl.odin
vendored
1
vendor/wasm/WebGL/webgl.odin
vendored
@@ -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) ---
|
||||
|
||||
Reference in New Issue
Block a user