From 8992d9baf542135e910bb59328a592d9e330703a Mon Sep 17 00:00:00 2001 From: hwc487 Date: Sun, 15 Apr 2012 05:16:34 -0700 Subject: Cloud Material --- js/lib/drawing/world.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'js/lib/drawing') 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 ) { this._firstRender = true; this._worldCount = worldCounter; + console.log( "creating world " + this._worldCount ); worldCounter++; // keep a counter for generating node names @@ -514,6 +515,18 @@ World.prototype.restartRenderLoop = function() { } }; +World.prototype.stop = function() +{ + if (this._canvas && this._canvas.task) + this._canvas.task.stop(); +} + +World.prototype.start = function() +{ + if (this._canvas && this._canvas.task) + this._canvas.task.start(); +} + //append to the list of objects if obj doesn't already exist //if obj exists, then don't add to list of objects World.prototype.addIfNewObject = function (obj) { -- cgit v1.2.3