From e2b37a74a592a98d80761fe52969f031a387a611 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sat, 4 Apr 2015 17:13:32 +0200 Subject: [PATCH] WebGL context docs --- src/ol/webgl/context.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ol/webgl/context.js b/src/ol/webgl/context.js index 4b78795b3c..c12d99755d 100644 --- a/src/ol/webgl/context.js +++ b/src/ol/webgl/context.js @@ -191,7 +191,8 @@ ol.webgl.Context.prototype.getCanvas = function() { /** - * @return {WebGLRenderingContext} GL. + * Get the WebGL rendering context + * @return {WebGLRenderingContext} The rendering context. * @api */ ol.webgl.Context.prototype.getGL = function() { @@ -200,7 +201,8 @@ ol.webgl.Context.prototype.getGL = function() { /** - * @return {WebGLFramebuffer} The framebuffer for the hit-detection. + * Get the frame buffer for hit detection. + * @return {WebGLFramebuffer} The hit detection frame buffer. * @api */ ol.webgl.Context.prototype.getHitDetectionFramebuffer = function() { @@ -328,9 +330,7 @@ ol.webgl.Context.prototype.initHitDetectionFramebuffer_ = function() { /** - * Just return false if that program is used already. Other use - * that program (call `gl.useProgram`) and make it the "current - * program". + * Use a program. If the program is already in use, this will return `false`. * @param {WebGLProgram} program Program. * @return {boolean} Changed. * @api