Replaced beginProjection()/endProjection() API with matrixMode()

This commit is contained in:
codeanticode
2011-02-08 05:35:21 +00:00
parent 80ad0e19f1
commit 8eb1d7838a
3 changed files with 17 additions and 27 deletions
+6 -12
View File
@@ -9265,18 +9265,6 @@ public class PApplet extends Applet
}
public void beginProjection() {
if (recorder != null) recorder.beginProjection();
g.beginProjection();
}
public void endProjection() {
if (recorder != null) recorder.endProjection();
g.endProjection();
}
public void beginCamera() {
if (recorder != null) recorder.beginCamera();
g.beginCamera();
@@ -10233,6 +10221,12 @@ public class PApplet extends Applet
}
public void matrixMode(int mode) {
if (recorder != null) recorder.matrixMode(mode);
g.matrixMode(mode);
}
public void texture(PImage image0, PImage image1) {
if (recorder != null) recorder.texture(image0, image1);
g.texture(image0, image1);
+5
View File
@@ -290,6 +290,11 @@ public interface PConstants {
static final int PROBLEM = 2;
// types of transformation matrices
static final int PROJECTION = 0;
static final int MODELVIEW = 1;
// types of projection matrices
static final int CUSTOM = 0; // user-specified fanciness
+6 -15
View File
@@ -4109,20 +4109,6 @@ public class PGraphics extends PImage implements PConstants {
}
//////////////////////////////////////////////////////////////
// PROJECTION
public void beginProjection() {
showMethodWarning("beginProjection");
}
public void endProjection() {
showMethodWarning("endProjection");
}
//////////////////////////////////////////////////////////////
// CAMERA
@@ -6001,7 +5987,12 @@ public class PGraphics extends PImage implements PConstants {
public void autoNormal(boolean auto) {
this.autoNormal = auto;
}
public void matrixMode(int mode) {
showMissingWarning("setting matrix mode requires OPENGL2");
}
public void texture(PImage image0, PImage image1) {
showMissingWarning("multitexturing requires OPENGL2");