Commit Graph

20 Commits

Author SHA1 Message Date
Alex Riedl
277c6cac71 Fix some webgl bindings 2025-08-09 10:47:07 -05:00
Michael Lee
9c5fa073df Update webgl.odin 2025-04-29 10:52:11 -05:00
Michael Lee
808eec8e23 Fix incorrect parameter types 2025-04-28 20:24:41 -05:00
Laytan Laats
b76fd84084 webgl: add BlendEquationSeparate and GetParameter4i
`GetParameter4i` can be used to retrieve the current scissor rect, or
the curent viewport, which was previously impossible.

Also adds `BlendEquationSeparate` which seemed to be missing.

Also removes an instance of `do`.
2025-03-12 18:39:57 +01:00
marcosantos98
3bfccde6f9 Fix: remove extra usage in webgl.odin:250
Compilation error when using webgl.BufferSubDataSlice.
The `usage` parameter is nowhere to be found.
This is probably a copy-pasta leftover.
2024-08-02 10:50:16 +01:00
Damian Tarnawski
23a49ce65b USe intrinsics.matrix_flatten in webgl2.odin 2024-02-05 18:28:03 +01:00
Kay
89a2fdd106 Change ClearMask to ColorMask in webgl.odin
https://registry.khronos.org/OpenGL-Refpages/gl4/html/glColorMask.xhtml
2024-02-02 23:42:37 -06:00
Damian Tarnawski
909a5016ee Correct glIsEnabled in wasm.webgl 2024-01-06 22:17:01 +01:00
Rehkitzdev
1097192554 added webgl GetParameter 2023-10-08 04:02:55 +02:00
gingerBill
5a6d5374d7 Update WebGL procedures to contextless calling convention 2023-06-22 14:30:02 +01:00
Rehkitzdev
b52bf11ea5 fixed webgl BindFramebuffer parameter 2023-05-31 21:44:30 +02:00
gingerBill
f3432e6bb5 Rename to CreateProgramFromStrings 2022-05-21 21:31:24 +01:00
gingerBill
d84d2f85e8 Add WebGL helper (CreateProgramHelper) 2022-05-21 15:34:12 +01:00
gingerBill
3bb31093fa Add documentation for CreateCurrentContextById and SetCurrentContextById 2022-05-18 13:08:31 +01:00
gingerBill
214b43974d Add WebGL ContextAttributes 2022-05-18 13:06:29 +01:00
gingerBill
55556aea77 Add WebGL runtime into the js/runtime.mjs; Allow for multiple WebGL contexts 2022-05-18 12:31:25 +01:00
gingerBill
6f1cc3946b Begin work on Event System for js_wasm32 target 2022-05-09 16:58:34 +01:00
ryuukk
d0240b8981 [WASM] Added missing zoffset parameters to some gl functions 2021-12-15 06:12:26 +01:00
Rehkitzdev
b7c78da1fb Fix storeInt call in webgl glue code 2021-12-11 18:38:32 +01:00
gingerBill
80360f3f51 Add vendor packages for the js_wasm32 target 2021-11-09 18:26:42 +00:00