aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE
diff options
context:
space:
mode:
authorPushkar Joshi2012-02-24 12:08:49 -0800
committerPushkar Joshi2012-02-24 12:08:49 -0800
commit03ca7a5ed13c25faaa9100bb666e062fd15335e6 (patch)
treec51112223ceb9121cd595a60335eb2795215590f /js/helper-classes/RDGE
parentfcb12cc09eb3cd3b42bd215877ba18f449275b75 (diff)
parent053fc63a2950c7a5ee4ebf98033b64d474a3c46e (diff)
downloadninja-03ca7a5ed13c25faaa9100bb666e062fd15335e6.tar.gz
Merge branch 'pentool' into brushtool
Conflicts: imports/codemirror/mode/scheme/scheme.js js/tools/BrushTool.js
Diffstat (limited to 'js/helper-classes/RDGE')
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLAnchorPoint.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLBrushStroke.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLCircle.js13
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLGeomObj.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLLight.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLLine.js644
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLMaterial.js11
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLPath.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLRectangle.js69
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLSubpath.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/GLWorld.js84
-rw-r--r--js/helper-classes/RDGE/Materials/BrickMaterial.js231
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/Materials/BumpMetalMaterial.js48
-rw-r--r--js/helper-classes/RDGE/Materials/DeformMaterial.js133
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/Materials/FlatMaterial.js60
-rw-r--r--js/helper-classes/RDGE/Materials/FlyMaterial.js133
-rw-r--r--js/helper-classes/RDGE/Materials/IridescentScalesMaterial.js215
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/Materials/LinearGradientMaterial.js148
-rw-r--r--js/helper-classes/RDGE/Materials/PulseMaterial.js32
-rw-r--r--js/helper-classes/RDGE/Materials/QuiltMaterial.js168
-rw-r--r--js/helper-classes/RDGE/Materials/RadialBlurMaterial.js13
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/Materials/RadialGradientMaterial.js87
-rw-r--r--js/helper-classes/RDGE/Materials/ReliefTunnelMaterial.js133
-rw-r--r--js/helper-classes/RDGE/Materials/SquareTunnelMaterial.js133
-rw-r--r--js/helper-classes/RDGE/Materials/StarMaterial.js133
-rw-r--r--js/helper-classes/RDGE/Materials/StitchMaterial.js119
-rw-r--r--js/helper-classes/RDGE/Materials/TaperMaterial.js223
-rw-r--r--js/helper-classes/RDGE/Materials/TunnelMaterial.js2
-rw-r--r--js/helper-classes/RDGE/Materials/TwistVertMaterial.js248
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/Materials/UberMaterial.js56
-rw-r--r--js/helper-classes/RDGE/Materials/WaterMaterial.js133
-rw-r--r--js/helper-classes/RDGE/Materials/ZInvertMaterial.js133
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/MaterialsLibrary.js91
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/precompiled.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/rdge-compiled.js57
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/MeshManager.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/RenderInitProcs.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/RenderProcs.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/ScreenQuad.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/ShaderManager.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/TextureManager.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/animation.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/box.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/camera.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/engine.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/fx/blur.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/fx/ssao.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/init_state.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/input.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/jpass.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/jshader.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/lightmanager.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/math/mat4.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/math/quat.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/math/vec2.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/math/vec3.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/math/vec4.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/objectManager.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/particle.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/precompiled.js10
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/renderUtils.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/rendercontext.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/renderer.js22
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/run_state.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/runtime.js14
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/scenegraph.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/scenegraphNodes.js8
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/shadowLight.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/sockets.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/ubershader.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/util/dbgpanel.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/util/fpsTracker.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/util/statTracker.js0
-rwxr-xr-x[-rw-r--r--]js/helper-classes/RDGE/src/core/script/utilities.js0
-rw-r--r--js/helper-classes/RDGE/src/tools/compile-rdge-core.bat4
-rw-r--r--js/helper-classes/RDGE/src/tools/compile-rdge-core.sh3
-rw-r--r--js/helper-classes/RDGE/src/tools/compiler.jarbin0 -> 4927265 bytes
-rw-r--r--js/helper-classes/RDGE/src/tools/rdge-compiled.js454
78 files changed, 2740 insertions, 1325 deletions
diff --git a/js/helper-classes/RDGE/GLAnchorPoint.js b/js/helper-classes/RDGE/GLAnchorPoint.js
index 716f59d4..716f59d4 100644..100755
--- a/js/helper-classes/RDGE/GLAnchorPoint.js
+++ b/js/helper-classes/RDGE/GLAnchorPoint.js
diff --git a/js/helper-classes/RDGE/GLBrushStroke.js b/js/helper-classes/RDGE/GLBrushStroke.js
index 8fb6ab25..8fb6ab25 100644..100755
--- a/js/helper-classes/RDGE/GLBrushStroke.js
+++ b/js/helper-classes/RDGE/GLBrushStroke.js
diff --git a/js/helper-classes/RDGE/GLCircle.js b/js/helper-classes/RDGE/GLCircle.js
index 942eb528..5b32547e 100644..100755
--- a/js/helper-classes/RDGE/GLCircle.js
+++ b/js/helper-classes/RDGE/GLCircle.js
@@ -133,6 +133,9 @@ function GLCircle()
133 if (!world) throw( "null world in buildBuffers" ); 133 if (!world) throw( "null world in buildBuffers" );
134 134
135 if (!world._useWebGL) return; 135 if (!world._useWebGL) return;
136
137 // make sure RDGE has the correct context
138 g_Engine.setContext( world.getCanvas().uuid );
136 139
137 // create the gl buffer 140 // create the gl buffer
138 var gl = world.getGLContext(); 141 var gl = world.getGLContext();
@@ -397,7 +400,10 @@ function GLCircle()
397 ctx.lineWidth = 0; 400 ctx.lineWidth = 0;
398 ctx.fillStyle = "#990000"; 401 ctx.fillStyle = "#990000";
399 if (this._fillColor) 402 if (this._fillColor)
400 ctx.fillStyle = MathUtils.colorToHex( this._fillColor ); 403 {
404 var c = "rgba(" + 255*this._fillColor[0] + "," + 255*this._fillColor[1] + "," + 255*this._fillColor[2] + "," + this._fillColor[3] + ")";
405 ctx.fillStyle = c;
406 }
401 407
402 // draw the fill 408 // draw the fill
403 ctx.beginPath(); 409 ctx.beginPath();
@@ -457,7 +463,10 @@ function GLCircle()
457 ctx.lineWidth = lineWidth; 463 ctx.lineWidth = lineWidth;
458 ctx.strokeStyle = "#0000ff"; 464 ctx.strokeStyle = "#0000ff";
459 if (this._strokeColor) 465 if (this._strokeColor)
460 ctx.strokeStyle = MathUtils.colorToHex( this._strokeColor ); 466 {
467 var c = "rgba(" + 255*this._strokeColor[0] + "," + 255*this._strokeColor[1] + "," + 255*this._strokeColor[2] + "," + this._strokeColor[3] + ")";
468 ctx.strokeStyle = c;
469 }
461 470
462 // draw the stroke 471 // draw the stroke
463 p = MathUtils.transformPoint( bezPts[0], mat ); 472 p = MathUtils.transformPoint( bezPts[0], mat );
diff --git a/js/helper-classes/RDGE/GLGeomObj.js b/js/helper-classes/RDGE/GLGeomObj.js
index 5d7497ad..5d7497ad 100644..100755
--- a/js/helper-classes/RDGE/GLGeomObj.js
+++ b/js/helper-classes/RDGE/GLGeomObj.js
diff --git a/js/helper-classes/RDGE/GLLight.js b/js/helper-classes/RDGE/GLLight.js
index 2bd5f77e..2bd5f77e 100644..100755
--- a/js/helper-classes/RDGE/GLLight.js
+++ b/js/helper-classes/RDGE/GLLight.js
diff --git a/js/helper-classes/RDGE/GLLine.js b/js/helper-classes/RDGE/GLLine.js
index 67379b52..0d815145 100644..100755
--- a/js/helper-classes/RDGE/GLLine.js
+++ b/js/helper-classes/RDGE/GLLine.js
@@ -11,76 +11,74 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
11/////////////////////////////////////////////////////////////////////// 11///////////////////////////////////////////////////////////////////////
12function GLLine( world, xOffset, yOffset, width, height, slope, strokeSize, strokeColor, strokeMaterial, strokeStyle, xAdj, yAdj) 12function GLLine( world, xOffset, yOffset, width, height, slope, strokeSize, strokeColor, strokeMaterial, strokeStyle, xAdj, yAdj)
13{ 13{
14 /////////////////////////////////////////////////////////////////////// 14 ///////////////////////////////////////////////////////////////////////
15 // Instance variables 15 // Instance variables
16 /////////////////////////////////////////////////////////////////////// 16 ///////////////////////////////////////////////////////////////////////
17 this._width = 2.0; 17 this._width = 2.0;
18 this._height = 2.0; 18 this._height = 2.0;
19 this._xOffset = 0; 19 this._xOffset = 0;
20 this._yOffset = 0; 20 this._yOffset = 0;
21 21
22 // If line doesn't fit in canvas world, we had to grow the canvas by this much on either side 22 // If line doesn't fit in canvas world, we had to grow the canvas by this much on either side
23 this._xAdj = 0; 23 this._xAdj = 0;
24 this._yAdj = 0; 24 this._yAdj = 0;
25 25
26