|
42 | 42 | */ |
43 | 43 | public class Dome extends PGraphics3D { |
44 | 44 | public final static String RENDERER = "codeanticode.planetarium.Dome"; |
45 | | - public final static String VERSION = "##library.prettyVersion##"; |
| 45 | + public final static String VERSION = "##library.prettyVersion##"; |
46 | 46 |
|
47 | 47 | public final static int NORMAL = 0; |
48 | 48 | public final static int GRID = 1; |
@@ -300,13 +300,13 @@ protected int getCurrentFace() { |
300 | 300 |
|
301 | 301 | private void initDome() { |
302 | 302 | if (domeSphere == null) { |
303 | | - domeSphere = createShape(SPHERE, resolution * 0.5f, 50, 50); |
| 303 | + domeSphere = createShape(SPHERE, resolution * 0.5f); |
304 | 304 | domeSphere.rotateX(HALF_PI); |
305 | 305 | domeSphere.setStroke(false); |
306 | 306 | } |
307 | 307 |
|
308 | 308 | if (gridSphere == null) { |
309 | | - gridSphere = createShape(SPHERE, resolution * 0.5f, 25, 25); |
| 309 | + gridSphere = createShape(SPHERE, resolution * 0.5f); |
310 | 310 | gridSphere.rotateX(HALF_PI); |
311 | 311 | gridSphere.setFill(0xFF000000); |
312 | 312 | gridSphere.setStroke(0xFFFFFFFF); |
@@ -405,9 +405,9 @@ private void endFaceDraw() { |
405 | 405 | private void renderDome() { |
406 | 406 | renderBorder(); |
407 | 407 |
|
408 | | - // This setting might be better for 2.1.2+: |
409 | | -// camera(0, 0, resolution * 0.5f, 0, 0, 0, 0, 1, 0); |
410 | | -// ortho(-width/2, width/2, -height/2, height/2); |
| 408 | + //This setting might be better for 2.1.2+: |
| 409 | + //camera(0, 0, resolution * 0.5f, 0, 0, 0, 0, 1, 0); |
| 410 | + //ortho(-width/2, width/2, -height/2, height/2); |
411 | 411 |
|
412 | 412 | camera(); |
413 | 413 | ortho(domeLeft, domeRight, domeBottom, domeTop); |
|
0 commit comments