Rename _ol_webgl_Context_ to WebGLContext

This commit is contained in:
Frederic Junod
2018-02-08 08:42:19 +01:00
parent 36ab4c1064
commit d1c11d50eb
5 changed files with 29 additions and 29 deletions

View File

@@ -12,7 +12,7 @@ import RendererType from '../Type.js';
import WebGLLayerRenderer from '../webgl/Layer.js';
import _ol_transform_ from '../../transform.js';
import _ol_webgl_ from '../../webgl.js';
import _ol_webgl_Context_ from '../../webgl/Context.js';
import WebGLContext from '../../webgl/Context.js';
/**
* @constructor
@@ -88,7 +88,7 @@ WebGLImageLayerRenderer.prototype.createTexture_ = function(image) {
const imageElement = image.getImage();
const gl = this.mapRenderer.getGL();
return _ol_webgl_Context_.createTexture(
return WebGLContext.createTexture(
gl, imageElement, _ol_webgl_.CLAMP_TO_EDGE, _ol_webgl_.CLAMP_TO_EDGE);
};

View File

@@ -12,7 +12,7 @@ import _ol_transform_ from '../../transform.js';
import {create, fromTransform} from '../../vec/mat4.js';
import _ol_webgl_ from '../../webgl.js';
import _ol_webgl_Buffer_ from '../../webgl/Buffer.js';
import _ol_webgl_Context_ from '../../webgl/Context.js';
import WebGLContext from '../../webgl/Context.js';
/**
* @constructor
@@ -116,7 +116,7 @@ WebGLLayerRenderer.prototype.bindFramebuffer = function(frameState, framebufferD
/** @type {ol.PostRenderFunction} */ (postRenderFunction)
);
const texture = _ol_webgl_Context_.createEmptyTexture(
const texture = WebGLContext.createEmptyTexture(
gl, framebufferDimension, framebufferDimension);
const framebuffer = gl.createFramebuffer();

View File

@@ -18,7 +18,7 @@ import SourceState from '../../source/State.js';
import LRUCache from '../../structs/LRUCache.js';
import PriorityQueue from '../../structs/PriorityQueue.js';
import _ol_webgl_ from '../../webgl.js';
import _ol_webgl_Context_ from '../../webgl/Context.js';
import WebGLContext from '../../webgl/Context.js';
import ContextEventType from '../../webgl/ContextEventType.js';
@@ -90,7 +90,7 @@ const WebGLMapRenderer = function(container, map) {
* @private
* @type {ol.webgl.Context}
*/
this.context_ = new _ol_webgl_Context_(this.canvas_, this.gl_);
this.context_ = new WebGLContext(this.canvas_, this.gl_);
listen(this.canvas_, ContextEventType.LOST,
this.handleWebGLContextLost, this);