aboutsummaryrefslogtreecommitdiff
path: root/js/lib/geom/circle.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/geom/circle.js')
-rwxr-xr-xjs/lib/geom/circle.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/lib/geom/circle.js b/js/lib/geom/circle.js
index d48bf98b..e8c94b64 100755
--- a/js/lib/geom/circle.js
+++ b/js/lib/geom/circle.js
@@ -178,7 +178,7 @@ var Circle = function GLCircle() {
178 if (!world._useWebGL) return; 178 if (!world._useWebGL) return;
179 179
180 // make sure RDGE has the correct context 180 // make sure RDGE has the correct context
181 g_Engine.setContext( world.getCanvas().rdgeid ); 181 RDGE.globals.engine.setContext( world.getCanvas().rdgeid );
182 182
183 // create the gl buffer 183 // create the gl buffer
184 var gl = world.getGLContext(); 184 var gl = world.getGLContext();
@@ -350,7 +350,7 @@ var Circle = function GLCircle() {
350 350
351 this.recalcTexMapCoords( vrts, uvs ); 351 this.recalcTexMapCoords( vrts, uvs );
352 352
353 return ShapePrimitive.create(vrts, nrms, uvs, indices, g_Engine.getContext().renderer.TRIANGLES, index); 353 return ShapePrimitive.create(vrts, nrms, uvs, indices, RDGE.globals.engine.getContext().renderer.TRIANGLES, index);
354 }; 354 };
355 355
356 this.generateOvalRing = function(xOff, yOff, rotationMat, innerScaleMat, outerScaleMat, nTriangles) { 356 this.generateOvalRing = function(xOff, yOff, rotationMat, innerScaleMat, outerScaleMat, nTriangles) {
@@ -407,7 +407,7 @@ var Circle = function GLCircle() {
407 407
408 this.recalcTexMapCoords( vrts, uvs ); 408 this.recalcTexMapCoords( vrts, uvs );
409 409
410 return ShapePrimitive.create(vrts, nrms, uvs, indices, g_Engine.getContext().renderer.TRIANGLE_STRIP, indices.length); 410 return ShapePrimitive.create(vrts, nrms, uvs, indices, RDGE.globals.engine.getContext().renderer.TRIANGLE_STRIP, indices.length);
411 }; 411 };
412 412
413 this.render = function() { 413 this.render = function() {