|
30 | 30 |
|
31 | 31 |
|
32 | 32 | /** |
33 | | - * Subclass of PGraphics that handles 3D rendering for Java 1.1. |
| 33 | + * Subclass of PGraphics that handles 3D rendering. |
34 | 34 | * It can render 3D inside a browser window and requires no plug-ins. |
35 | 35 | * <p/> |
36 | 36 | * The renderer is mostly set up based on the structure of the OpenGL API, |
@@ -368,15 +368,15 @@ public void endDraw() { |
368 | 368 | protected void flush() { |
369 | 369 | if (triangleCount > 0) { |
370 | 370 | if (hints[ENABLE_DEPTH_SORT]) { |
371 | | - depth_sort_triangles(); |
| 371 | + sortTriangles(); |
372 | 372 | } |
373 | | - render_triangles(); |
| 373 | + renderTriangles(); |
374 | 374 | } |
375 | 375 | if (lineCount > 0) { |
376 | 376 | if (hints[ENABLE_DEPTH_SORT]) { |
377 | | - depth_sort_lines(); |
| 377 | + sortLines(); |
378 | 378 | } |
379 | | - render_lines(); |
| 379 | + renderLines(); |
380 | 380 | } |
381 | 381 | // Clear this out in case flush() is called again. |
382 | 382 | // For instance, with hint(ENABLE_DEPTH_SORT), it will be called |
@@ -971,8 +971,8 @@ public void endShape(int mode) { |
971 | 971 |
|
972 | 972 | // if true, the shapes will be rendered on endDraw |
973 | 973 | if (!hints[ENABLE_DEPTH_SORT]) { |
974 | | - if (fill) render_triangles(); |
975 | | - if (stroke) render_lines(); |
| 974 | + if (fill) renderTriangles(); |
| 975 | + if (stroke) renderLines(); |
976 | 976 | } |
977 | 977 |
|
978 | 978 | shape = 0; |
@@ -1247,7 +1247,7 @@ protected final void add_triangle_no_clip(int a, int b, int c) { |
1247 | 1247 | } |
1248 | 1248 |
|
1249 | 1249 |
|
1250 | | - protected void depth_sort_triangles() { |
| 1250 | + protected void sortTriangles() { |
1251 | 1251 | //System.out.println("sorting " + triangleCount + " triangles"); |
1252 | 1252 | depth_sort_triangles_internal(0, triangleCount-1); |
1253 | 1253 | } |
@@ -1305,7 +1305,7 @@ protected float depth_sort_triangles_compare(int a, int b) { |
1305 | 1305 | } |
1306 | 1306 |
|
1307 | 1307 |
|
1308 | | - protected void render_triangles() { |
| 1308 | + protected void renderTriangles() { |
1309 | 1309 | if (raw != null) { |
1310 | 1310 | raw.colorMode(RGB, 1); |
1311 | 1311 | raw.noStroke(); |
@@ -1422,11 +1422,11 @@ protected void render_triangles() { |
1422 | 1422 | } |
1423 | 1423 |
|
1424 | 1424 |
|
1425 | | - protected void depth_sort_lines() { |
| 1425 | + protected void sortLines() { |
1426 | 1426 | } |
1427 | 1427 |
|
1428 | 1428 |
|
1429 | | - protected void render_lines() { |
| 1429 | + protected void renderLines() { |
1430 | 1430 | if (raw != null) { |
1431 | 1431 | raw.colorMode(RGB, 1); |
1432 | 1432 | raw.noFill(); |
|
0 commit comments