working on tweaks for recordRaw() and dxf/ai support

This commit is contained in:
benfry
2006-02-27 20:44:03 +00:00
parent 849c4f5401
commit 94065bf9ac
6 changed files with 53 additions and 35 deletions

View File

@@ -201,8 +201,9 @@ public class PGraphics extends PImage implements PConstants {
// vertices
static final int DEFAULT_VERTICES = 512;
public float vertices[][] = new float[DEFAULT_VERTICES][VERTEX_FIELD_COUNT];
int vertexCount; // total number of vertices
protected float vertices[][] =
new float[DEFAULT_VERTICES][VERTEX_FIELD_COUNT];
protected int vertexCount; // total number of vertices
// ........................................................
@@ -751,7 +752,7 @@ public class PGraphics extends PImage implements PConstants {
// not everyone needs this, but just easier to store rather
// than adding another moving part to the code...
vertices[vertexCount][MX] = x;
vertices[vertexCount][MY] = x;
vertices[vertexCount][MY] = y;
vertexCount++;
switch (shape) {