aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes
diff options
context:
space:
mode:
Diffstat (limited to 'js/helper-classes')
-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 bd3cbc26..67379b52 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; }
@@ -184,9 +189,9 @@ function GLLine( world, xOffset, yOffset, width, height, slope, strokeSize, stro
184 xFill+x, yFill+y, 0.0, 189 xFill+x, yFill+y, 0.0,
185 -xFill+x, -yFill+y, 0.0, 190 -xFill+x, -yFill+y, 0.0,
186 191
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 xFill+x, -yFill+y, 0.0 194 xFill+x, yFill+y, 0.0
190 ]; 195 ];
191 } 196 }
192 else if(this._slope === "horizontal") 197 else if(this._slope === "horizontal")
@@ -199,10 +204,10 @@ function GLLine( world, xOffset, yOffset, width, height, slope, strokeSize, stro
199 xFill+x, yFill+y, 0.0, 204 xFill+x, yFill+y, 0.0,
200 -xFill+x, -yFill+y, 0.0, 205 -xFill+x, -yFill+y, 0.0,
201 206
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 xFill+x, -yFill+y, 0.0 209 xFill+x, yFill+y, 0.0
205 ]; 210 ];
206 } 211 }
207 else if(this._slope > 0) 212 else if(this._slope > 0)
208 { 213 {
@@ -212,9 +217,9 @@ function GLLine( world, xOffset, yOffset, width, height, slope, strokeSize, stro
212 -xFill+2*xAdj+x, yFill+y, 0.0, 217 -xFill+2*xAdj+x, yFill+y, 0.0,
213 xFill-2*xAdj+x, -yFill+y, 0.0, 218 xFill-2*xAdj+x, -yFill+y, 0.0,
214 219
215 -xFill+2*xAdj+x, yFill+y, 0.0, 220 xFill+x, -yFill+2*yAdj+y, 0.0,
216 xFill-2*xAdj+x, -yFill+y, 0.0, 221 xFill-2*xAdj+x, -yFill+y, 0.0,
217 xFill+x, -yFill+2*yAdj+y, 0.0 222 -xFill+2*xAdj+x, yFill+y, 0.0
218 ]; 223 ];
219 } 224 }
220 else 225 else
@@ -225,9 +230,9 @@ function GLLine( world, xOffset, yOffset, width, height, slope, strokeSize, stro
225 -xFill+2*xAdj+x, -yFill+y, 0.0, 230 -xFill+2*xAdj+x, -yFill+y, 0.0,
226 xFill-2*xAdj+x, yFill+y, 0.0, 231 xFill-2*xAdj+x, yFill+y, 0.0,
227 232
228 -xFill+2*xAdj+x, -yFill+y, 0.0, 233 xFill+x, yFill-2*yAdj+y, 0.0,
229 xFill-2*xAdj+x, yFill+y, 0.0, 234 xFill-2*xAdj+x, yFill+y, 0.0,
230 xFill+x, yFill-2*yAdj+y, 0.0 235 -xFill+2*xAdj+x, -yFill+y, 0.0
231 ]; 236 ];
232 } 237 }
233 } 238 }