mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
Fixed context and edge init in PShape3D
This commit is contained in:
@@ -6111,6 +6111,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
public int[] emissive;
|
||||
public float[] shininess;
|
||||
|
||||
// TODO: this should probably go in the TessGeometry class
|
||||
public int[][] edges;
|
||||
|
||||
// For later, to be used by libraries...
|
||||
@@ -6127,6 +6128,12 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
edgeCount = firstEdge = lastEdge = 0;
|
||||
}
|
||||
|
||||
|
||||
public void clearEdges() {
|
||||
edgeCount = firstEdge = lastEdge = 0;
|
||||
}
|
||||
|
||||
|
||||
public void allocate() {
|
||||
codes = new int[PGL.DEFAULT_IN_VERTICES];
|
||||
vertices = new float[3 * PGL.DEFAULT_IN_VERTICES];
|
||||
|
||||
Reference in New Issue
Block a user