diff --git a/src/webgl/3d_primitives.js b/src/webgl/3d_primitives.js index bafd307b7e..cd6cccc893 100644 --- a/src/webgl/3d_primitives.js +++ b/src/webgl/3d_primitives.js @@ -113,11 +113,6 @@ function primitives3D(p5, fn){ * The parameter, `callback`, is a function with the drawing instructions for * the new p5.Geometry object. It will be called * once to create the new 3D shape. - * - * See beginGeometry() and - * endGeometry() for another way to build 3D - * shapes. - * * Note: `buildGeometry()` can only be used in WebGL mode. * * @method buildGeometry @@ -321,12 +316,8 @@ function primitives3D(p5, fn){ * p5.Geometry objects can contain lots of data * about their vertices, surface normals, colors, and so on. Complex 3D shapes * can use lots of memory which is a limited resource in many GPUs. Calling - * `freeGeometry()` can improve performance by freeing a - * p5.Geometry object’s resources from GPU memory. * `freeGeometry()` works with p5.Geometry objects - * created with beginGeometry() and - * endGeometry(), - * buildGeometry(), and + * created with buildGeometry() and * loadModel(). * * The parameter, `geometry`, is the p5.Geometry @@ -342,24 +333,6 @@ function primitives3D(p5, fn){ * @param {p5.Geometry} geometry 3D shape whose resources should be freed. * * @example - * function setup() { - * createCanvas(100, 100, WEBGL); - * - * background(200); - * - * // Create a p5.Geometry object. - * beginGeometry(); - * cone(); - * let shape = endGeometry(); - * - * // Draw the shape. - * model(shape); - * - * // Free the shape's resources. - * freeGeometry(shape); - * } - * - * @example * // Click and drag the mouse to view the scene from different angles. * * let button; diff --git a/src/webgl/loading.js b/src/webgl/loading.js index 6f726b15cc..23fe61b123 100755 --- a/src/webgl/loading.js +++ b/src/webgl/loading.js @@ -972,9 +972,7 @@ function loading(p5, fn){ * The parameter, `model`, is the * p5.Geometry object to draw. * p5.Geometry objects can be built with - * buildGeometry(), or - * beginGeometry() and - * endGeometry(). They can also be loaded from + * buildGeometry(). They can also be loaded from * a file with loadGeometry(). * * Note: `model()` can only be used in WebGL mode.