Merge branch 'master' into separate-int-word-sizes

This commit is contained in:
gingerBill
2023-06-06 22:42:04 +01:00
147 changed files with 19917 additions and 10151 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ foreign webgl {
AttachShader :: proc(program: Program, shader: Shader) ---
BindAttribLocation :: proc(program: Program, index: i32, name: string) ---
BindBuffer :: proc(target: Enum, buffer: Buffer) ---
BindFramebuffer :: proc(target: Enum, buffer: Buffer) ---
BindFramebuffer :: proc(target: Enum, framebuffer: Framebuffer) ---
BindTexture :: proc(target: Enum, texture: Texture) ---
BlendColor :: proc(red, green, blue, alpha: f32) ---
BlendEquation :: proc(mode: Enum) ---
+2 -2
View File
@@ -313,8 +313,8 @@ class WebGLInterface {
this.ctx.bindBuffer(target, bufferObj)
}
},
BindFramebuffer: (target, buffer) => {
// TODO: BindFramebuffer
BindFramebuffer: (target, framebuffer) => {
this.ctx.bindFramebuffer(target, framebuffer ? this.framebuffers[framebuffer] : null)
},
BindTexture: (target, texture) => {
this.ctx.bindTexture(target, texture ? this.textures[texture] : null)