Skip to content

Commit

Permalink
Refactored SceneLoader.
Browse files Browse the repository at this point in the history
Just a single callback is now passed  to loader.load( "scene.js", callbackFinal ) - callback which is called when everything from the scene was already loaded.

If you want to use also callbacks for initialization of procedural synchronously created elements, you can set property of loader:

loader.callbackSync = function( result ) { ... }

If you want to get callback for load progress, set:

loader.callbackProgress = function( progress, result ) { ... }

Also added per scene creation of collision systems (it used to be singleton).
  • Loading branch information
alteredq committed Apr 15, 2011
1 parent f51d3f4 commit aac5b61
Show file tree
Hide file tree
Showing 10 changed files with 477 additions and 463 deletions.
572 changes: 286 additions & 286 deletions build/Three.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/custom/ThreeCanvas.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/custom/ThreeDOM.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit aac5b61

Please sign in to comment.