Add @struct annotation where possible

This commit is contained in:
Tom Payne
2013-12-04 15:44:03 +01:00
parent aa0a02b935
commit 600cb3a0ff
21 changed files with 37 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ goog.require('ol.webgl');
/**
* @constructor
* @param {string} source Source.
* @struct
*/
ol.webgl.Shader = function(source) {
@@ -46,6 +47,7 @@ ol.webgl.Shader.prototype.isAnimated = goog.functions.FALSE;
* @constructor
* @extends {ol.webgl.Shader}
* @param {string} source Source.
* @struct
*/
ol.webgl.shader.Fragment = function(source) {
goog.base(this, source);
@@ -66,6 +68,7 @@ ol.webgl.shader.Fragment.prototype.getType = function() {
* @constructor
* @extends {ol.webgl.Shader}
* @param {string} source Source.
* @struct
*/
ol.webgl.shader.Vertex = function(source) {
goog.base(this, source);

View File

@@ -8,6 +8,7 @@ goog.require('ol.webgl.shader');
/**
* @constructor
* @extends {ol.webgl.shader.Fragment}
* @struct
*/
{{className}}Fragment = function() {
goog.base(this, {{className}}Fragment.SOURCE);
@@ -43,6 +44,7 @@ goog.addSingletonGetter({{className}}Fragment);
/**
* @constructor
* @extends {ol.webgl.shader.Vertex}
* @struct
*/
{{className}}Vertex = function() {
goog.base(this, {{className}}Vertex.SOURCE);
@@ -79,6 +81,7 @@ goog.addSingletonGetter({{className}}Vertex);
* @constructor
* @param {WebGLRenderingContext} gl GL.
* @param {WebGLProgram} program Program.
* @struct
*/
{{namespace}}.Locations = function(gl, program) {
{{#getUniforms}}