Add webgl-debug.js externs

This commit is contained in:
Tom Payne
2012-07-15 20:42:24 +02:00
parent 7d8d8253a3
commit 377043b20e
2 changed files with 57 additions and 1 deletions

55
externs/webgl-debug.js Normal file
View File

@@ -0,0 +1,55 @@
/**
* @externs
*/
/**
* @constructor
* @extends {WebGLRenderingContext}
*/
var WebGLDebugRenderingContext = function() {};
/**
* @type {Object}
*/
var WebGLDebugUtils = {};
/**
* @param {number} glEnum GL enum.
* @return {string} String.
*/
WebGLDebugUtils.glEnumToString = function(glEnum) {
return '';
};
/**
* @param {string} functionName Function name.
* @param {Array} args Args.
* @return {string} String.
*/
WebGLDebugUtils.glFunctionArgsToString = function(functionName, args) {
return '';
};
/**
* @param {WebGLRenderingContext} context Context.
*/
WebGLDebugUtils.init = function(context) {
};
/**
* @param {WebGLRenderingContext} context Context.
* @param {Function=} opt_onErrorFunc On error function.
* @param {Function=} opt_onFunc On function.
* @return {WebGLDebugRenderingContext} Context.
*/
WebGLDebugUtils.makeDebugContext = function(
context, opt_onErrorFunc, opt_onFunc) {
return null;
};