You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -113,11 +113,11 @@ Returns null if the canvas has already been initialized with another context typ
113
113
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
114
114
*/
115
115
@send
116
-
externalgetContext2: (
116
+
externalgetContext_WebGL: (
117
117
offscreenCanvas,
118
-
~contextId: offscreenRenderingContextId,
119
-
~options: JSON.t=?,
120
-
) =>imageBitmapRenderingContext="getContext"
118
+
@as("webgl") _,
119
+
~options: webGLContextAttributes=?,
120
+
) =>webGLRenderingContext="getContext"
121
121
122
122
/**
123
123
Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
@@ -128,11 +128,11 @@ Returns null if the canvas has already been initialized with another context typ
128
128
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
129
129
*/
130
130
@send
131
-
externalgetContext3: (
131
+
externalgetContext_WebGL2: (
132
132
offscreenCanvas,
133
-
~contextId: offscreenRenderingContextId,
134
-
~options: JSON.t=?,
135
-
) =>webGLRenderingContext="getContext"
133
+
@as("webgl2") _,
134
+
~options: webGLContextAttributes=?,
135
+
) =>webGL2RenderingContext="getContext"
136
136
137
137
/**
138
138
Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
@@ -143,11 +143,11 @@ Returns null if the canvas has already been initialized with another context typ
143
143
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
144
144
*/
145
145
@send
146
-
externalgetContext4: (
146
+
externalgetContext_BitmapRenderer: (
147
147
offscreenCanvas,
148
-
~contextId: offscreenRenderingContextId,
149
-
~options: JSON.t=?,
150
-
) =>webGL2RenderingContext="getContext"
148
+
@as("bitmaprenderer") _,
149
+
~options: imageBitmapRenderingContextSettings=?,
150
+
) =>imageBitmapRenderingContext="getContext"
151
151
152
152
/**
153
153
Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.
0 commit comments