aboutsummaryrefslogtreecommitdiff
path: root/js/lib/drawing
diff options
context:
space:
mode:
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) {