put necessary api vars from PGraphics3 into PGraphics

This commit is contained in:
benfry
2005-06-08 21:10:52 +00:00
parent 32c5ffa260
commit 9f220a8fbc
6 changed files with 200 additions and 260 deletions

View File

@@ -5687,7 +5687,7 @@ v PApplet.this.stop();
static public boolean saveHeaderTIFF(OutputStream output,
int width, int height) {
int width, int height) {
return PGraphics.saveHeaderTIFF(output, width, height);
}
@@ -5698,12 +5698,6 @@ v PApplet.this.stop();
}
static public boolean saveHeaderTGA(OutputStream output,
int width, int height) {
return PGraphics.saveHeaderTGA(output, width, height);
}
static public boolean saveTGA(OutputStream output, int pixels[],
int width, int height) {
return PGraphics.saveTGA(output, pixels, width, height);
@@ -5914,6 +5908,12 @@ v PApplet.this.stop();
}
public void bezierDetail(int detail) {
if (recorder != null) recorder.bezierDetail(detail);
g.bezierDetail(detail);
}
public void bezier(float x1, float y1,
float x2, float y2,
float x3, float y3,
@@ -5932,9 +5932,14 @@ v PApplet.this.stop();
}
public void bezierDetail(int detail) {
if (recorder != null) recorder.bezierDetail(detail);
g.bezierDetail(detail);
public float curvePoint(float a, float b, float c, float d, float t) {
return g.curvePoint(a, b, c, d, t);
}
public float curveTangent(float a, float b, float c, float d,
float t) {
return g.curveTangent(a, b, c, d, t);
}
@@ -5950,17 +5955,6 @@ v PApplet.this.stop();
}
public float curvePoint(float a, float b, float c, float d, float t) {
return g.curvePoint(a, b, c, d, t);
}
public float curveTangent(float a, float b, float c, float d,
float t) {
return g.curveTangent(a, b, c, d, t);
}
public void curve(float x1, float y1,
float x2, float y2,
float x3, float y3,
@@ -6000,42 +5994,12 @@ v PApplet.this.stop();
}
public void textFont(PFont which, float size) {
if (recorder != null) recorder.textFont(which, size);
g.textFont(which, size);
}
public void textFont(PFont which) {
if (recorder != null) recorder.textFont(which);
g.textFont(which);
}
public void textSize(float size) {
if (recorder != null) recorder.textSize(size);
g.textSize(size);
}
public void textLeading(float leading) {
if (recorder != null) recorder.textLeading(leading);
g.textLeading(leading);
}
public void textAlign(int align) {
if (recorder != null) recorder.textAlign(align);
g.textAlign(align);
}
public void textMode(int mode) {
if (recorder != null) recorder.textMode(mode);
g.textMode(mode);
}
public float textAscent() {
return g.textAscent();
}
@@ -6046,6 +6010,36 @@ v PApplet.this.stop();
}
public void textFont(PFont which) {
if (recorder != null) recorder.textFont(which);
g.textFont(which);
}
public void textFont(PFont which, float size) {
if (recorder != null) recorder.textFont(which, size);
g.textFont(which, size);
}
public void textLeading(float leading) {
if (recorder != null) recorder.textLeading(leading);
g.textLeading(leading);
}
public void textMode(int mode) {
if (recorder != null) recorder.textMode(mode);
g.textMode(mode);
}
public void textSize(float size) {
if (recorder != null) recorder.textSize(size);
g.textSize(size);
}
public float textWidth(char c) {
return g.textWidth(c);
}
@@ -6210,15 +6204,15 @@ v PApplet.this.stop();
}
public void printMatrix() {
if (recorder != null) recorder.printMatrix();
g.printMatrix();
public void loadMatrix() {
if (recorder != null) recorder.loadMatrix();
g.loadMatrix();
}
public void cameraMode(int mode) {
if (recorder != null) recorder.cameraMode(mode);
g.cameraMode(mode);
public void printMatrix() {
if (recorder != null) recorder.printMatrix();
g.printMatrix();
}
@@ -6248,6 +6242,12 @@ v PApplet.this.stop();
}
public void printCamera() {
if (recorder != null) recorder.printCamera();
g.printCamera();
}
public void ortho() {
if (recorder != null) recorder.ortho();
g.ortho();
@@ -6281,12 +6281,6 @@ v PApplet.this.stop();
}
public void printCamera() {
if (recorder != null) recorder.printCamera();
g.printCamera();
}
public void printProjection() {
if (recorder != null) recorder.printProjection();
g.printProjection();
@@ -6359,6 +6353,60 @@ v PApplet.this.stop();
}
public void strokeWeight(float weight) {
if (recorder != null) recorder.strokeWeight(weight);
g.strokeWeight(weight);
}
public void strokeJoin(int join) {
if (recorder != null) recorder.strokeJoin(join);
g.strokeJoin(join);
}
public void strokeCap(int cap) {
if (recorder != null) recorder.strokeCap(cap);
g.strokeCap(cap);
}
public void noStroke() {
if (recorder != null) recorder.noStroke();
g.noStroke();
}
public void stroke(int rgb) {
if (recorder != null) recorder.stroke(rgb);
g.stroke(rgb);
}
public void stroke(float gray) {
if (recorder != null) recorder.stroke(gray);
g.stroke(gray);
}
public void stroke(float gray, float alpha) {
if (recorder != null) recorder.stroke(gray, alpha);
g.stroke(gray, alpha);
}
public void stroke(float x, float y, float z) {
if (recorder != null) recorder.stroke(x, y, z);
g.stroke(x, y, z);
}
public void stroke(float x, float y, float z, float a) {
if (recorder != null) recorder.stroke(x, y, z, a);
g.stroke(x, y, z, a);
}
public void noTint() {
if (recorder != null) recorder.noTint();
g.noTint();
@@ -6515,7 +6563,8 @@ v PApplet.this.stop();
}
public void ambientLight(float red, float green, float blue, float x, float y, float z) {
public void ambientLight(float red, float green, float blue,
float x, float y, float z) {
if (recorder != null) recorder.ambientLight(red, green, blue, x, y, z);
g.ambientLight(red, green, blue, x, y, z);
}
@@ -6556,60 +6605,6 @@ v PApplet.this.stop();
}
public void strokeWeight(float weight) {
if (recorder != null) recorder.strokeWeight(weight);
g.strokeWeight(weight);
}
public void strokeJoin(int join) {
if (recorder != null) recorder.strokeJoin(join);
g.strokeJoin(join);
}
public void strokeCap(int cap) {
if (recorder != null) recorder.strokeCap(cap);
g.strokeCap(cap);
}
public void noStroke() {
if (recorder != null) recorder.noStroke();
g.noStroke();
}
public void stroke(int rgb) {
if (recorder != null) recorder.stroke(rgb);
g.stroke(rgb);
}
public void stroke(float gray) {
if (recorder != null) recorder.stroke(gray);
g.stroke(gray);
}
public void stroke(float gray, float alpha) {
if (recorder != null) recorder.stroke(gray, alpha);
g.stroke(gray, alpha);
}
public void stroke(float x, float y, float z) {
if (recorder != null) recorder.stroke(x, y, z);
g.stroke(x, y, z);
}
public void stroke(float x, float y, float z, float a) {
if (recorder != null) recorder.stroke(x, y, z, a);
g.stroke(x, y, z, a);
}
public void background(int rgb) {
if (recorder != null) recorder.background(rgb);
g.background(rgb);