aboutsummaryrefslogtreecommitdiff
path: root/js/lib/geom/rectangle.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/geom/rectangle.js')
-rwxr-xr-xjs/lib/geom/rectangle.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/lib/geom/rectangle.js b/js/lib/geom/rectangle.js
index e511d5f4..46876ba7 100755
--- a/js/lib/geom/rectangle.js
+++ b/js/lib/geom/rectangle.js
@@ -352,7 +352,7 @@ var Rectangle = function GLRectangle() {
352 if (!world._useWebGL) return; 352 if (!world._useWebGL) return;
353 353
354 // make sure RDGE has the correct context 354 // make sure RDGE has the correct context
355 g_Engine.setContext( world.getCanvas().rdgeid ); 355 RDGE.globals.engine.setContext( world.getCanvas().rdgeid );
356 356
357 // create the gl buffer 357 // create the gl buffer
358 var gl = world.getGLContext(); 358 var gl = world.getGLContext();
@@ -952,7 +952,7 @@ RectangleFill.create = function( rectCtr, width, height, tlRad, blRad, brRad,
952// } 952// }
953 953
954 // create the RDGE primitive 954 // create the RDGE primitive
955 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, g_Engine.getContext().renderer.TRIANGLES, nVertices); 955 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, RDGE.globals.engine.getContext().renderer.TRIANGLES, nVertices);
956}; 956};
957 957
958RectangleFill.pushVertex = function( x, y, z ) { 958RectangleFill.pushVertex = function( x, y, z ) {
@@ -1184,7 +1184,7 @@ RectangleStroke.create = function( rectCtr, width, height, strokeWidth, tlRad,
1184// } 1184// }
1185 1185
1186 // create the RDGE primitive 1186 // create the RDGE primitive
1187 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, g_Engine.getContext().renderer.TRIANGLES, nVertices); 1187 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, RDGE.globals.engine.getContext().renderer.TRIANGLES, nVertices);
1188}; 1188};
1189 1189
1190RectangleStroke.getRoundedCorner = function( ctr, insidePt, outsidePt ) { 1190RectangleStroke.getRoundedCorner = function( ctr, insidePt, outsidePt ) {
@@ -1270,7 +1270,7 @@ RectangleGeometry.create = function( ctr, width, height, material ) {
1270// } 1270// }
1271 1271
1272 // create the RDGE primitive 1272 // create the RDGE primitive
1273 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, g_Engine.getContext().renderer.TRIANGLES, nVertices); 1273 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, RDGE.globals.engine.getContext().renderer.TRIANGLES, nVertices);
1274}; 1274};
1275 1275
1276RectangleGeometry.pushVertex = RectangleFill.pushVertex; 1276RectangleGeometry.pushVertex = RectangleFill.pushVertex;