mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 01:50:44 +01:00
a bunch of font work that prolly breaks things too...
This commit is contained in:
@@ -4026,6 +4026,11 @@ public class PApplet extends Applet
|
||||
return what & 0xff;
|
||||
}
|
||||
|
||||
/**
|
||||
* Note that toInt('5') is unlike String in the sense that it
|
||||
* won't return 5, but the ascii value. This is because ((int) someChar)
|
||||
* returns the ascii value, and toInt() is just longhand for the cast.
|
||||
*/
|
||||
static final public int toInt(char what) {
|
||||
return what;
|
||||
}
|
||||
@@ -5762,6 +5767,12 @@ v PApplet.this.stop();
|
||||
}
|
||||
|
||||
|
||||
public void ortho() {
|
||||
if (recorder != null) recorder.ortho();
|
||||
g.ortho();
|
||||
}
|
||||
|
||||
|
||||
public void ortho(float left, float right,
|
||||
float bottom, float top,
|
||||
float near, float far) {
|
||||
@@ -5770,6 +5781,12 @@ v PApplet.this.stop();
|
||||
}
|
||||
|
||||
|
||||
public void perspective() {
|
||||
if (recorder != null) recorder.perspective();
|
||||
g.perspective();
|
||||
}
|
||||
|
||||
|
||||
public void perspective(float fovy, float aspect, float zNear, float zFar) {
|
||||
if (recorder != null) recorder.perspective(fovy, aspect, zNear, zFar);
|
||||
g.perspective(fovy, aspect, zNear, zFar);
|
||||
|
||||
Reference in New Issue
Block a user