Add more functions and clean up unnecessary comments

This commit is contained in:
Tom Payne
2012-07-16 13:11:44 +02:00
parent c162f3582d
commit ff8b9133b3
+57 -11
View File
@@ -1,5 +1,7 @@
/** /**
* @externs * @externs
* @see http://www.khronos.org/webgl/wiki/Debugging
* @see http://www.khronos.org/webgl/wiki/HandlingContextLost
*/ */
@@ -11,6 +13,44 @@
var WebGLDebugRenderingContext = function() {}; var WebGLDebugRenderingContext = function() {};
/**
* @constructor
* @extends {HTMLCanvasElement}
*/
var WebGLDebugLostContextSimulatingCanvas = function() {};
/**
* @return {number}
*/
WebGLDebugLostContextSimulatingCanvas.prototype.getNumCalls = function() {};
/**
*/
WebGLDebugLostContextSimulatingCanvas.prototype.loseContext = function() {};
/**
* @param {number} numCalls
*/
WebGLDebugLostContextSimulatingCanvas.prototype.loseContextInNCalls =
function(numCalls) {};
/**
*/
WebGLDebugLostContextSimulatingCanvas.prototype.restoreContext = function() {};
/**
* @param {number} timeout
*/
WebGLDebugLostContextSimulatingCanvas.prototype.setRestoreTimeout =
function(timeout) {};
/** /**
* @type {Object} * @type {Object}
*/ */
@@ -18,14 +58,14 @@ var WebGLDebugUtils = {};
/** /**
* @param {number} glEnum GL enum. * @param {number} value
* @return {string} String. * @return {string}
*/ */
WebGLDebugUtils.glEnumToString = function(glEnum) {}; WebGLDebugUtils.glEnumToString = function(value) {};
/** /**
* @param {string} functionName Function name. * @param {string} functionName
* @param {Array} args Args. * @param {Array} args Args.
* @return {string} String. * @return {string} String.
*/ */
@@ -33,17 +73,23 @@ WebGLDebugUtils.glFunctionArgsToString = function(functionName, args) {};
/** /**
* @param {WebGLRenderingContext} context Context. * @param {WebGLRenderingContext} ctx
*/ */
WebGLDebugUtils.init = function(context) { WebGLDebugUtils.init = function(ctx) {};
};
/** /**
* @param {WebGLRenderingContext} context Context. * @param {HTMLCanvasElement} canvas
* @param {Function=} opt_onErrorFunc On error function. * @return {WebGLDebugLostContextSimulatingCanvas}
* @param {Function=} opt_onFunc On function. */
* @return {WebGLDebugRenderingContext} Context. WebGLDebugUtils.makeLostContextSimulatingCanvas = function(canvas) {};
/**
* @param {WebGLRenderingContext} context
* @param {Function=} opt_onErrorFunc
* @param {Function=} opt_onFunc
* @return {WebGLDebugRenderingContext}
*/ */
WebGLDebugUtils.makeDebugContext = WebGLDebugUtils.makeDebugContext =
function(context, opt_onErrorFunc, opt_onFunc) {}; function(context, opt_onErrorFunc, opt_onFunc) {};