aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/GLLine.js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-02-09 13:23:07 -0800
committerNivesh Rajbhandari2012-02-09 13:23:07 -0800
commit148e6f7c00e54b0ec6fa6bb6791f0ac0920af511 (patch)
tree889719cf024d73e2e1e93d73a40f96a2a8d27dc6 /js/helper-classes/RDGE/GLLine.js
parenta9a02ef8a206082ea9ea0cb66f3fb70e1f4256df (diff)
parent666ae3e9119410cbf7fa974274d95336aaff091c (diff)
downloadninja-148e6f7c00e54b0ec6fa6bb6791f0ac0920af511.tar.gz
Merge branch 'refs/heads/ninja-internal' into WebGLFixes
Conflicts: js/helper-classes/RDGE/GLMaterial.js js/helper-classes/RDGE/GLRectangle.js js/helper-classes/RDGE/GLWorld.js js/helper-classes/RDGE/Materials/FlatMaterial.js js/helper-classes/RDGE/Materials/IridescentScalesMaterial.js js/helper-classes/RDGE/Materials/JuliaMaterial.js js/helper-classes/RDGE/Materials/KeleidoscopeMaterial.js js/helper-classes/RDGE/Materials/MandelMaterial.js js/helper-classes/RDGE/Materials/PlasmaMaterial.js js/helper-classes/RDGE/Materials/PulseMaterial.js js/helper-classes/RDGE/Materials/RadialBlurMaterial.js js/helper-classes/RDGE/Materials/RadialGradientMaterial.js js/helper-classes/RDGE/Materials/TunnelMaterial.js js/helper-classes/RDGE/Materials/TwistMaterial.js js/helper-classes/RDGE/rdge-compiled.js js/helper-classes/RDGE/src/core/script/renderer.js js/panels/Materials/Materials.xml Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/helper-classes/RDGE/GLLine.js')
-rw-r--r--js/helper-classes/RDGE/GLLine.js29
1 files changed, 17 insertions, 12 deletions
diff --git a/js/helper-classes/RDGE/GLLine.js b/js/helper-classes/RDGE/GLLine.js
index f01e1610..1cd70575 100644
--- a/js/helper-classes/RDGE/GLLine.js
+++ b/js/helper-classes/RDGE/GLLine.js
@@ -77,11 +77,16 @@ function GLLine( world, xOffset, yOffset, width, height, slope, strokeSize, stro
77 this.getStrokeMaterial = function() { return this._strokeMaterial; } 77 this.getStrokeMaterial = function() { return this._strokeMaterial; }
78 this.setStrokeMaterial = function(m) { this._strokeMaterial = m; } 78 this.setStrokeMaterial = function(m) { this._strokeMaterial = m; }
79 79
80 this.getStrokeColor = function() { return this._strokeColor; } 80 this.getStrokeColor = function() { return this._strokeColor; }
81 //this.setStrokeColor = function(c) { this._strokeColor = c; } 81 //this.setStrokeColor = function(c) { this._strokeColor = c; }
82 82
83 this.getStrokeStyle = function() { return this._strokeStyle; } 83 this.getStrokeStyle = function() { return this._strokeStyle; }
84 this.setStrokeStyle = function(s) { this._strokeStyle = s; } 84 this.setStrokeStyle = function(s) { this._strokeStyle = s; }
85
86 this.getFillMaterial = function() { return null; }
87
88 this.setStrokeMaterial = function(m) { this._strokeMaterial = m; }
89 this.getStrokeMaterial = function() { return this._strokeMaterial; }
85 90
86 this.getWidth = function() { return this._width; } 91 this.getWidth = function() { return this._width; }
87 this.setWidth = function(w) { this._width = w; } 92 this.setWidth = function(w) { this._width = w; }
@@ -187,9 +192,9 @@ function GLLine( world, xOffset, yOffset, width, height, slope, strokeSize, stro
187 xFill+x, yFill+y, 0.0, 192 xFill+x, yFill+y, 0.0,
188 -xFill+x, -yFill+y, 0.0, 193 -xFill+x, -yFill+y, 0.0,
189 194
190 xFill+x, yFill+y, 0.0, 195 xFill+x, -yFill+y, 0.0,
191 -xFill+x, -yFill+y, 0.0, 196 -xFill+x, -yFill+y, 0.0,
192 xFill+x, -yFill+y, 0.0 197 xFill+x, yFill+y, 0.0
193 ]; 198 ];
194 } 199 }
195 else if(this._slope === "horizontal") 200 else if(this._slope === "horizontal")
@@ -202,10 +207,10 @@ function GLLine( world, xOffset, yOffset, width, height, slope, strokeSize, stro
202 xFill+x, yFill+y, 0.0, 207 xFill+x, yFill+y, 0.0,
203 -xFill+x, -yFill+y, 0.0, 208 -xFill+x, -yFill+y, 0.0,
204 209
205 xFill+x, yFill+y, 0.0, 210 xFill+x, -yFill+y, 0.0,
206 -xFill+x, -yFill+y, 0.0, 211 -xFill+x, -yFill+y, 0.0,
207 xFill+x, -yFill+y, 0.0 212 xFill+x, yFill+y, 0.0
208 ]; 213 ];
209 } 214 }
210 else if(this._slope > 0) 215 else if(this._slope > 0)
211 { 216 {
@@ -215,9 +220,9 @@ function GLLine( world, xOffset, yOffset, width, height, slope, strokeSize, stro
215 -xFill+2*xAdj+x, yFill+y, 0.0, 220 -xFill+2*xAdj+x, yFill+y, 0.0,
216 xFill-2*xAdj+x, -yFill+y, 0.0, 221 xFill-2*xAdj+x, -yFill+y, 0.0,
217 222
218 -xFill+2*xAdj+x, yFill+y, 0.0, 223 xFill+x, -yFill+2*yAdj+y, 0.0,
219 xFill-2*xAdj+x, -yFill+y, 0.0, 224 xFill-2*xAdj+x, -yFill+y, 0.0,
220 xFill+x, -yFill+2*yAdj+y, 0.0 225 -xFill+2*xAdj+x, yFill+y, 0.0
221 ]; 226 ];
222 } 227 }
223 else 228 else
@@ -228,9 +233,9 @@ function GLLine( world, xOffset, yOffset, width, height, slope, strokeSize, stro
228 -xFill+2*xAdj+x, -yFill+y, 0.0, 233 -xFill+2*xAdj+x, -yFill+y, 0.0,
229 xFill-2*xAdj+x, yFill+y, 0.0, 234 xFill-2*xAdj+x, yFill+y, 0.0,
230 235
231 -xFill+2*xAdj+x, -yFill+y, 0.0, 236 xFill+x, yFill-2*yAdj+y, 0.0,
232 xFill-2*xAdj+x, yFill+y, 0.0, 237 xFill-2*xAdj+x, yFill+y, 0.0,
233 xFill+x, yFill-2*yAdj+y, 0.0 238 -xFill+2*xAdj+x, -yFill+y, 0.0
234 ]; 239 ];
235 } 240 }
236 } 241 }