aboutsummaryrefslogtreecommitdiff
path: root/js/lib/drawing
diff options
context:
space:
mode:
authorhwc4872012-04-15 05:16:34 -0700
committerhwc4872012-04-15 05:16:34 -0700
commit8992d9baf542135e910bb59328a592d9e330703a (patch)
tree268465b69fd37ec1dc33d304de959e79dc619ecd /js/lib/drawing
parent331b2ad4d602016f9bb3d03be759fd81fed50c10 (diff)
downloadninja-8992d9baf542135e910bb59328a592d9e330703a.tar.gz
Cloud Material
Diffstat (limited to 'js/lib/drawing')
-rwxr-xr-xjs/lib/drawing/world.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/lib/drawing/world.js b/js/lib/drawing/world.js
index 5eca26b8..4ca738f4 100755
--- a/js/lib/drawing/world.js
+++ b/js/lib/drawing/world.js
@@ -73,6 +73,7 @@ var World = function GLWorld( canvas, use3D, preserveDrawingBuffer ) {
73 this._firstRender = true; 73 this._firstRender = true;
74 74
75 this._worldCount = worldCounter; 75 this._worldCount = worldCounter;
76 console.log( "creating world " + this._worldCount );
76 worldCounter++; 77 worldCounter++;
77 78
78 // keep a counter for generating node names 79 // keep a counter for generating node names
@@ -514,6 +515,18 @@ World.prototype.restartRenderLoop = function() {
514 } 515 }
515}; 516};
516 517
518World.prototype.stop = function()
519{
520 if (this._canvas && this._canvas.task)
521 this._canvas.task.stop();
522}
523
524World.prototype.start = function()
525{
526 if (this._canvas && this._canvas.task)
527 this._canvas.task.start();
528}
529
517//append to the list of objects if obj doesn't already exist 530//append to the list of objects if obj doesn't already exist
518//if obj exists, then don't add to list of objects 531//if obj exists, then don't add to list of objects
519World.prototype.addIfNewObject = function (obj) { 532World.prototype.addIfNewObject = function (obj) {