Skip to content

Commit 2aa94c2

Browse files
committed
WebGL types added to jsdoc
1 parent 8425629 commit 2aa94c2

6 files changed

Lines changed: 333 additions & 343 deletions

File tree

src/renderer/webgl/WebGLPipeline.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ var WebGLPipeline = new Class({
8282
* [description]
8383
*
8484
* @name Phaser.Renderer.WebGL.WebGLPipeline#gl
85-
* @type {[type]}
85+
* @type {WebGLRenderingContext}
8686
* @since 3.0.0
8787
*/
8888
this.gl = config.gl;
@@ -119,7 +119,7 @@ var WebGLPipeline = new Class({
119119
* [description]
120120
*
121121
* @name Phaser.Renderer.WebGL.WebGLPipeline#vertexData
122-
* @type {[type]}
122+
* @type {ArrayBuffer}
123123
* @since 3.0.0
124124
*/
125125
this.vertexData = (config.vertices ? config.vertices : new ArrayBuffer(config.vertexCapacity * config.vertexSize));
@@ -128,7 +128,7 @@ var WebGLPipeline = new Class({
128128
* [description]
129129
*
130130
* @name Phaser.Renderer.WebGL.WebGLPipeline#vertexBuffer
131-
* @type {[type]}
131+
* @type {WebGLBuffer}
132132
* @since 3.0.0
133133
*/
134134
this.vertexBuffer = this.renderer.createVertexBuffer((config.vertices ? config.vertices : this.vertexData.byteLength), this.gl.STREAM_DRAW);
@@ -137,7 +137,7 @@ var WebGLPipeline = new Class({
137137
* [description]
138138
*
139139
* @name Phaser.Renderer.WebGL.WebGLPipeline#program
140-
* @type {[type]}
140+
* @type {WebGLProgram}
141141
* @since 3.0.0
142142
*/
143143
this.program = this.renderer.createProgram(config.vertShader, config.fragShader);
@@ -146,7 +146,7 @@ var WebGLPipeline = new Class({
146146
* [description]
147147
*
148148
* @name Phaser.Renderer.WebGL.WebGLPipeline#attributes
149-
* @type {[type]}
149+
* @type {object}
150150
* @since 3.0.0
151151
*/
152152
this.attributes = config.attributes;
@@ -155,7 +155,7 @@ var WebGLPipeline = new Class({
155155
* [description]
156156
*
157157
* @name Phaser.Renderer.WebGL.WebGLPipeline#vertexSize
158-
* @type {[type]}
158+
* @type {int}
159159
* @since 3.0.0
160160
*/
161161
this.vertexSize = config.vertexSize;
@@ -164,7 +164,7 @@ var WebGLPipeline = new Class({
164164
* [description]
165165
*
166166
* @name Phaser.Renderer.WebGL.WebGLPipeline#topology
167-
* @type {[type]}
167+
* @type {int}
168168
* @since 3.0.0
169169
*/
170170
this.topology = config.topology;
@@ -182,7 +182,7 @@ var WebGLPipeline = new Class({
182182
* This will store the amount of components of 32 bit length
183183
*
184184
* @name Phaser.Renderer.WebGL.WebGLPipeline#vertexComponentCount
185-
* @type {[type]}
185+
* @type {int}
186186
* @since 3.0.0
187187
*/
188188
this.vertexComponentCount = Utils.getComponentCount(config.attributes);

0 commit comments

Comments
 (0)