View source
abstract WebGLRenderContext(WebGL2RenderContext)
package lime.graphics
Available on Android, HTML5, Linux, Mac, Windows, iOS
The WebGLRenderContext
allows access to WebGL features when OpenGL, OpenGL ES or
WebGL is the render context type of the Window
.
Using a WebGL context on a desktop or mobile platform enables support for cross-platform code that should run all platforms (when hardware acceleration is supported).
You can convert from lime.graphics.RenderContext
, lime.graphics.OpenGLRenderContext
,
lime.graphics.OpenGLES3RenderContext
, lime.graphics.OpenGLES2RenderContext
,
lime.graphics.WebGL2RenderContext
or lime.graphics.opengl.GL
directly if desired:
var webgl:WebGLRenderContext = window.context;
var webgl:WebGLRenderContext = gl;
var webgl:WebGLRenderContext = gles3;
var webgl:WebGLRenderContext = gles2;
var webgl:WebGLRenderContext = webgl2;
var webgl:WebGLRenderContext = GL;