mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Replaced beginProjection()/endProjection() API with matrixMode()
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user