Skip to content

Commit 66fc232

Browse files
committed
Hide bare WEBGL functions
1 parent 985e8a0 commit 66fc232

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/webgl/loading.js

+7
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,9 @@ function loading(p5, fn){
487487
}
488488
};
489489

490+
/**
491+
* @private
492+
*/
490493
async function parseMtl(mtlPath) {
491494
let currentMaterial = null;
492495
let materials = {};
@@ -532,6 +535,7 @@ function loading(p5, fn){
532535
}
533536

534537
/**
538+
* @private
535539
* Parse OBJ lines into model. For reference, this is what a simple model of a
536540
* square might look like:
537541
*
@@ -666,6 +670,7 @@ function loading(p5, fn){
666670
}
667671

668672
/**
673+
* @private
669674
* STL files can be of two types, ASCII and Binary,
670675
*
671676
* We need to convert the arrayBuffer to an array of strings,
@@ -720,6 +725,7 @@ function loading(p5, fn){
720725
}
721726

722727
/**
728+
* @private
723729
* This function matches the `query` at the provided `offset`
724730
*/
725731
function matchDataViewAt(query, reader, offset) {
@@ -820,6 +826,7 @@ function loading(p5, fn){
820826
}
821827

822828
/**
829+
* @private
823830
* ASCII STL file starts with `solid 'nameOfFile'`
824831
* Then contain the normal of the face, starting with `facet normal`
825832
* Next contain a keyword indicating the start of face vertex, `outer loop`

0 commit comments

Comments
 (0)