Skip to content

Commit 13b6be4

Browse files
committed
Hide p5.Texture methods
1 parent 0660e58 commit 13b6be4

File tree

2 files changed

+0
-38
lines changed

2 files changed

+0
-38
lines changed

docs/parameterData.json

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3094,37 +3094,6 @@
30943094
]
30953095
]
30963096
},
3097-
"update": {
3098-
"overloads": [
3099-
[]
3100-
]
3101-
},
3102-
"bindTexture": {
3103-
"overloads": [
3104-
[]
3105-
]
3106-
},
3107-
"unbindTexture": {
3108-
"overloads": [
3109-
[]
3110-
]
3111-
},
3112-
"setInterpolation": {
3113-
"overloads": [
3114-
[
3115-
"String",
3116-
"String"
3117-
]
3118-
]
3119-
},
3120-
"setWrapMode": {
3121-
"overloads": [
3122-
[
3123-
"String",
3124-
"String"
3125-
]
3126-
]
3127-
},
31283097
"remove": {
31293098
"overloads": [
31303099
[]

src/webgl/p5.Texture.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ class Texture {
114114
* Initializes common texture parameters, creates a gl texture,
115115
* tries to upload the texture for the first time if data is
116116
* already available.
117-
* @private
118-
* @method init
119117
*/
120118
init (data) {
121119
const gl = this._renderer.GL;
@@ -172,7 +170,6 @@ class Texture {
172170
* easy to do so) and reuploads the texture if necessary. If it's not
173171
* possible or to expensive to do a calculation to determine wheter or
174172
* not the data has occurred, this method simply re-uploads the texture.
175-
* @method update
176173
*/
177174
update () {
178175
const data = this.src;
@@ -271,7 +268,6 @@ class Texture {
271268

272269
/**
273270
* Binds the texture to the appropriate GL target.
274-
* @method bindTexture
275271
*/
276272
bindTexture () {
277273
// bind texture using gl context + glTarget and
@@ -284,7 +280,6 @@ class Texture {
284280

285281
/**
286282
* Unbinds the texture from the appropriate GL target.
287-
* @method unbindTexture
288283
*/
289284
unbindTexture () {
290285
// unbind per above, disable texturing on glTarget
@@ -304,7 +299,6 @@ class Texture {
304299
* Sets how a texture is be interpolated when upscaled or downscaled.
305300
* Nearest filtering uses nearest neighbor scaling when interpolating
306301
* Linear filtering uses WebGL's linear scaling when interpolating
307-
* @method setInterpolation
308302
* @param {String} downScale Specifies the texture filtering when
309303
* textures are shrunk. Options are LINEAR or NEAREST
310304
* @param {String} upScale Specifies the texture filtering when
@@ -337,7 +331,6 @@ class Texture {
337331
* when their uv's go outside of the 0 - 1 range. There are three options:
338332
* CLAMP, REPEAT, and MIRROR. REPEAT & MIRROR are only available if the texture
339333
* is a power of two size (128, 256, 512, 1024, etc.).
340-
* @method setWrapMode
341334
* @param {String} wrapX Controls the horizontal texture wrapping behavior
342335
* @param {String} wrapY Controls the vertical texture wrapping behavior
343336
*/

0 commit comments

Comments
 (0)