Skip to content

Commit af0dea1

Browse files
committed
cleaning up sort/render/light methods
1 parent 67c9953 commit af0dea1

7 files changed

Lines changed: 954 additions & 866 deletions

File tree

core/api.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
public boolean canDraw()
99
public void beginDraw()
1010
public void endDraw()
11-
public void flush()
1211

1312
protected void checkSettings()
1413
protected void defaultSettings()
@@ -51,6 +50,17 @@
5150
float x3, float y3, float z3,
5251
float x4, float y4, float z4)
5352

53+
// P3D adds the protected methods that can be overridden
54+
protected void renderPoints(int start, int stop)
55+
protected void rawPoints(int start, int stop)
56+
protected void renderLines(int start, int stop)
57+
protected void rawLines(int start, int stop)
58+
protected void renderTriangles(int start, int stop)
59+
protected void rawTriangles(int start, int stop)
60+
public void flush()
61+
protected void render()
62+
proected void sort()
63+
5464
public void point(float x, float y)
5565
public void point(float x, float y, float z)
5666
public void line(float x1, float y1, float x2, float y2)

core/src/processing/core/PGraphics2D.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ private void thick_flat_line(float ox1, float oy1,
13471347
float ox2, float oy2,
13481348
float r2, float g2, float b2, float a2) {
13491349
spolygon.interpARGB = (r1 != r2) || (g1 != g2) || (b1 != b2) || (a1 != a2);
1350-
spolygon.interpZ = false;
1350+
// spolygon.interpZ = false;
13511351

13521352
if (!spolygon.interpARGB &&
13531353
flat_line_retribution(ox1, oy1, ox2, oy2, r1, g1, b1)) {

0 commit comments

Comments
 (0)