Skip to content

Commit 5cffb3f

Browse files
authored
Merge branch 'dev-2.0' into unescape
2 parents 4e1a560 + 4706c3c commit 5cffb3f

File tree

2 files changed

+2
-31
lines changed

2 files changed

+2
-31
lines changed

src/webgl/3d_primitives.js

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,6 @@ function primitives3D(p5, fn){
113113
* The parameter, `callback`, is a function with the drawing instructions for
114114
* the new <a href="#/p5.Geometry">p5.Geometry</a> object. It will be called
115115
* once to create the new 3D shape.
116-
*
117-
* See <a href="#/p5/beginGeometry">beginGeometry()</a> and
118-
* <a href="#/p5/endGeometry">endGeometry()</a> for another way to build 3D
119-
* shapes.
120-
*
121116
* Note: `buildGeometry()` can only be used in WebGL mode.
122117
*
123118
* @method buildGeometry
@@ -321,12 +316,8 @@ function primitives3D(p5, fn){
321316
* <a href="#/p5.Geometry">p5.Geometry</a> objects can contain lots of data
322317
* about their vertices, surface normals, colors, and so on. Complex 3D shapes
323318
* can use lots of memory which is a limited resource in many GPUs. Calling
324-
* `freeGeometry()` can improve performance by freeing a
325-
* <a href="#/p5.Geometry">p5.Geometry</a> object’s resources from GPU memory.
326319
* `freeGeometry()` works with <a href="#/p5.Geometry">p5.Geometry</a> objects
327-
* created with <a href="#/p5/beginGeometry">beginGeometry()</a> and
328-
* <a href="#/p5/endGeometry">endGeometry()</a>,
329-
* <a href="#/p5/buildGeometry">buildGeometry()</a>, and
320+
* created with <a href="#/p5/buildGeometry">buildGeometry()</a> and
330321
* <a href="#/p5/loadModel">loadModel()</a>.
331322
*
332323
* The parameter, `geometry`, is the <a href="#/p5.Geometry">p5.Geometry</a>
@@ -342,24 +333,6 @@ function primitives3D(p5, fn){
342333
* @param {p5.Geometry} geometry 3D shape whose resources should be freed.
343334
*
344335
* @example
345-
* function setup() {
346-
* createCanvas(100, 100, WEBGL);
347-
*
348-
* background(200);
349-
*
350-
* // Create a p5.Geometry object.
351-
* beginGeometry();
352-
* cone();
353-
* let shape = endGeometry();
354-
*
355-
* // Draw the shape.
356-
* model(shape);
357-
*
358-
* // Free the shape's resources.
359-
* freeGeometry(shape);
360-
* }
361-
*
362-
* @example
363336
* // Click and drag the mouse to view the scene from different angles.
364337
*
365338
* let button;

src/webgl/loading.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -972,9 +972,7 @@ function loading(p5, fn){
972972
* The parameter, `model`, is the
973973
* <a href="#/p5.Geometry">p5.Geometry</a> object to draw.
974974
* <a href="#/p5.Geometry">p5.Geometry</a> objects can be built with
975-
* <a href="#/p5/buildGeometry">buildGeometry()</a>, or
976-
* <a href="#/p5/beginGeometry">beginGeometry()</a> and
977-
* <a href="#/p5/endGeometry">endGeometry()</a>. They can also be loaded from
975+
* <a href="#/p5/buildGeometry">buildGeometry()</a>. They can also be loaded from
978976
* a file with <a href="#/p5/loadGeometry">loadGeometry()</a>.
979977
*
980978
* Note: `model()` can only be used in WebGL mode.

0 commit comments

Comments
 (0)