OpenLayers v4.0.1 API - Class: Context

# Class: Context

This documentation is for OpenLayers v4.0.1. The latest is v.

## Context

A WebGL context for accessing low-level WebGL capabilities.

### Extends

- ol.Disposable

### Methods

#### getGL(){WebGLRenderingContext}

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

  Get the WebGL rendering context

  ##### Returns:

  The rendering context.

#### useProgram(program){boolean}

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

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

  Name | Type | Description
  --- | --- | ---
  `program` | WebGLProgram | Program.

  ##### Returns:

  Changed.