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
var ctx = document.createElement('canvas').getContext('experimental-webgl');
What needs to be done to make that works? There is no WebGLRenderingContext.cs
How to create WebGLRenderingContext.cs that links to the OpenGL example here?
`public object getContext(string contextType)
{
if (contextType == "2d") {
if (this.context == null) {
this.context = new CanvasRenderingContext2D(this.window, this);
}
return this.context;
}
else if (contextType == "experimental-webgl" || contextType == "webgl")
{
if (this.context == null)
{
this.context = new WebGLRenderingContext(this.window, this);
}
return this.context;
}
return null;
}`
The text was updated successfully, but these errors were encountered:
deltakosh/JsBridge#16
var ctx = document.createElement('canvas').getContext('experimental-webgl');
What needs to be done to make that works? There is no WebGLRenderingContext.cs
How to create WebGLRenderingContext.cs that links to the OpenGL example here?
The text was updated successfully, but these errors were encountered: