Class: Context

Context

A WebGL context for accessing low-level WebGL capabilities.

Extends

  • goog.events.EventTarget

Methods

getGL(){WebGLRenderingContext} experimental

src/ol/webgl/context.js, line 196

Get the WebGL rendering context

Returns:
The rendering context.

useProgram(program){boolean} experimental

src/ol/webgl/context.js, line 335

Use a program. If the program is already in use, this will return false.

Name Type Description
program WebGLProgram

Program.

Returns:
Changed.