aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/GLWorld.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/helper-classes/RDGE/GLWorld.js')
-rwxr-xr-xjs/helper-classes/RDGE/GLWorld.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/js/helper-classes/RDGE/GLWorld.js b/js/helper-classes/RDGE/GLWorld.js
index 64086bee..0ab3c242 100755
--- a/js/helper-classes/RDGE/GLWorld.js
+++ b/js/helper-classes/RDGE/GLWorld.js
@@ -157,7 +157,7 @@ function GLWorld( canvas, use3D )
157 157
158 // change clear color 158 // change clear color
159 //this.renderer.setClearFlags(g_Engine.getContext().DEPTH_BUFFER_BIT); 159 //this.renderer.setClearFlags(g_Engine.getContext().DEPTH_BUFFER_BIT);
160 this.renderer.setClearColor([1.0, 1.0, 1.0, 0.0]); 160 this.renderer.setClearColor([0.0, 0.0, 0.0, 0.0]);
161 //this.renderer.NinjaWorld = this; 161 //this.renderer.NinjaWorld = this;
162 162
163 // create an empty scene graph 163 // create an empty scene graph
@@ -811,7 +811,7 @@ GLWorld.prototype.getShapeFromPoint = function( offsetX, offsetY )
811 } 811 }
812} 812}
813 813
814GLWorld.prototype.export = function() 814GLWorld.prototype.export = function( exportForPublish )
815{ 815{
816 var exportStr = "GLWorld 1.0\n"; 816 var exportStr = "GLWorld 1.0\n";
817 var id = this.getCanvas().getAttribute( "data-RDGE-id" ); 817 var id = this.getCanvas().getAttribute( "data-RDGE-id" );
@@ -824,7 +824,8 @@ GLWorld.prototype.export = function()
824 824
825 // we need 2 export modes: One for save/restore, one for publish. 825 // we need 2 export modes: One for save/restore, one for publish.
826 // hardcoding for now 826 // hardcoding for now
827 var exportForPublish = false; 827 //var exportForPublish = false;
828 if (!exportForPublish) exportForPublish = false;
828 exportStr += "publish: " + exportForPublish + "\n"; 829 exportStr += "publish: " + exportForPublish + "\n";
829 830
830 if (exportForPublish) 831 if (exportForPublish)