mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
added webgl GetParameter
This commit is contained in:
Vendored
+1
@@ -112,6 +112,7 @@ foreign webgl {
|
||||
GetUniformLocation :: proc(program: Program, name: string) -> i32 ---
|
||||
GetVertexAttribOffset :: proc(index: i32, pname: Enum) -> uintptr ---
|
||||
GetProgramParameter :: proc(program: Program, pname: Enum) -> i32 ---
|
||||
GetParameter :: proc(pname: Enum) -> i32 ---
|
||||
|
||||
Hint :: proc(target: Enum, mode: Enum) ---
|
||||
|
||||
|
||||
Vendored
+3
-1
@@ -558,7 +558,9 @@ class WebGLInterface {
|
||||
},
|
||||
|
||||
|
||||
|
||||
GetParameter: (pname) => {
|
||||
return this.ctx.getParameter(pname);
|
||||
},
|
||||
GetProgramParameter: (program, pname) => {
|
||||
return this.ctx.getProgramParameter(this.programs[program], pname)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user