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 81b385b3..98621a98 100755
--- a/js/lib/geom/rectangle.js
+++ b/js/lib/geom/rectangle.js
@@ -276,7 +276,7 @@ var Rectangle = function GLRectangle() {
276 if (!world._useWebGL) return; 276 if (!world._useWebGL) return;
277 277
278 // make sure RDGE has the correct context 278 // make sure RDGE has the correct context
279 g_Engine.setContext( world.getCanvas().rdgeid ); 279 RDGE.globals.engine.setContext( world.getCanvas().rdgeid );
280 280
281 // create the gl buffer 281 // create the gl buffer
282 var gl = world.getGLContext(); 282 var gl = world.getGLContext();
@@ -826,7 +826,7 @@ RectangleFill.create = function( rectCtr, width, height, tlRad, blRad, brRad,
826// } 826// }
827 827
828 // create the RDGE primitive 828 // create the RDGE primitive
829 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, g_Engine.getContext().renderer.TRIANGLES, nVertices); 829 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, RDGE.globals.engine.getContext().renderer.TRIANGLES, nVertices);
830}; 830};
831 831
832RectangleFill.pushVertex = function( x, y, z ) { 832RectangleFill.pushVertex = function( x, y, z ) {
@@ -1058,7 +1058,7 @@ RectangleStroke.create = function( rectCtr, width, height, strokeWidth, tlRad,
1058// } 1058// }
1059 1059
1060 // create the RDGE primitive 1060 // create the RDGE primitive
1061 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, g_Engine.getContext().renderer.TRIANGLES, nVertices); 1061 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, RDGE.globals.engine.getContext().renderer.TRIANGLES, nVertices);
1062}; 1062};
1063 1063
1064RectangleStroke.getRoundedCorner = function( ctr, insidePt, outsidePt ) { 1064RectangleStroke.getRoundedCorner = function( ctr, insidePt, outsidePt ) {
@@ -1144,7 +1144,7 @@ RectangleGeometry.create = function( ctr, width, height, material ) {
1144// } 1144// }
1145 1145
1146 // create the RDGE primitive 1146 // create the RDGE primitive
1147 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, g_Engine.getContext().renderer.TRIANGLES, nVertices); 1147 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, RDGE.globals.engine.getContext().renderer.TRIANGLES, nVertices);
1148}; 1148};
1149 1149
1150RectangleGeometry.pushVertex = RectangleFill.pushVertex; 1150RectangleGeometry.pushVertex = RectangleFill.pushVertex;