Module type for ol.webgl.Context
This commit is contained in:
@@ -139,7 +139,7 @@ WebGLLayerRenderer.prototype.bindFramebuffer = function(frameState, framebufferD
|
||||
/**
|
||||
* @param {module:ol/PluggableMap~FrameState} frameState Frame state.
|
||||
* @param {module:ol/layer/Layer~State} layerState Layer state.
|
||||
* @param {ol.webgl.Context} context Context.
|
||||
* @param {module:ol/webgl/Context~WebGLContext} context Context.
|
||||
*/
|
||||
WebGLLayerRenderer.prototype.composeFrame = function(frameState, layerState, context) {
|
||||
|
||||
@@ -183,7 +183,7 @@ WebGLLayerRenderer.prototype.composeFrame = function(frameState, layerState, con
|
||||
|
||||
/**
|
||||
* @param {ol.render.EventType} type Event type.
|
||||
* @param {ol.webgl.Context} context WebGL context.
|
||||
* @param {module:ol/webgl/Context~WebGLContext} context WebGL context.
|
||||
* @param {module:ol/PluggableMap~FrameState} frameState Frame state.
|
||||
* @private
|
||||
*/
|
||||
@@ -245,7 +245,7 @@ WebGLLayerRenderer.prototype.handleWebGLContextLost = function() {
|
||||
* @abstract
|
||||
* @param {module:ol/PluggableMap~FrameState} frameState Frame state.
|
||||
* @param {module:ol/layer/Layer~State} layerState Layer state.
|
||||
* @param {ol.webgl.Context} context Context.
|
||||
* @param {module:ol/webgl/Context~WebGLContext} context Context.
|
||||
* @return {boolean} whether composeFrame should be called.
|
||||
*/
|
||||
WebGLLayerRenderer.prototype.prepareFrame = function(frameState, layerState, context) {};
|
||||
|
||||
@@ -92,7 +92,7 @@ const WebGLMapRenderer = function(container, map) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {ol.webgl.Context}
|
||||
* @type {module:ol/webgl/Context~WebGLContext}
|
||||
*/
|
||||
this.context_ = new WebGLContext(this.canvas_, this.gl_);
|
||||
|
||||
@@ -335,7 +335,7 @@ WebGLMapRenderer.prototype.expireCache_ = function(map, frameState) {
|
||||
|
||||
|
||||
/**
|
||||
* @return {ol.webgl.Context} The context.
|
||||
* @return {module:ol/webgl/Context~WebGLContext} The context.
|
||||
*/
|
||||
WebGLMapRenderer.prototype.getContext = function() {
|
||||
return this.context_;
|
||||
|
||||
Reference in New Issue
Block a user