Add WebGL runtime into the js/runtime.mjs; Allow for multiple WebGL contexts

This commit is contained in:
gingerBill
2022-05-18 12:31:25 +01:00
parent 223897d224
commit 55556aea77
4 changed files with 1066 additions and 1052 deletions
-1034
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -15,6 +15,7 @@ Texture :: distinct u32
@(default_calling_convention="c")
foreign webgl {
SetCurrentContextById :: proc(name: string) -> bool ---
DrawingBufferWidth :: proc() -> i32 ---
DrawingBufferHeight :: proc() -> i32 ---