diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/helper-classes/RDGE/GLLine.js | 29 |
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 | } |