Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/manual/en/introduction/Import-via-modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,12 @@ <h2>Importable Examples</h2>
<li>PDBLoader</li>
<li>PlayCanvasLoader</li>
<li>PLYLoader</li>
<li>PRWMLoader</li>
<li>PVRLoader</li>
<li>RGBELoader</li>
<li>STLLoader</li>
<li>SVGLoader</li>
<li>TDSLoader</li>
<li>TGALoader</li>
<li>VRMLLoader</li>
</ul>
Expand Down
20 changes: 8 additions & 12 deletions examples/js/loaders/PRWMLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
* See https://github.com/kchapelier/PRWM for more informations about this file format
*/

( function ( THREE ) {

'use strict';
THREE.PRWMLoader = ( function () {

var bigEndianPlatform = null;

Expand Down Expand Up @@ -224,13 +222,13 @@

// Define the public interface

THREE.PRWMLoader = function PRWMLoader( manager ) {
function PRWMLoader( manager ) {

this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;

};
}

THREE.PRWMLoader.prototype = {
PRWMLoader.prototype = {

constructor: THREE.PRWMLoader,

Expand Down Expand Up @@ -261,8 +259,6 @@

parse: function ( arrayBuffer ) {

console.time( 'PRWMLoader' );

var data = decodePrwm( arrayBuffer ),
attributesKey = Object.keys( data.attributes ),
bufferGeometry = new THREE.BufferGeometry(),
Expand All @@ -282,18 +278,18 @@

}

console.timeEnd( 'PRWMLoader' );

return bufferGeometry;

}

};

THREE.PRWMLoader.isBigEndianPlatform = function () {
PRWMLoader.isBigEndianPlatform = function () {

return isBigEndianPlatform();

};

} )( THREE );
return PRWMLoader;

} )();
Loading