mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 01:29:17 +01:00
> X get library stuff debugged
> X port arcball and finish up dxf writer > X beginCamera() no longer sets an identity matrix
This commit is contained in:
@@ -227,6 +227,10 @@ public class PApplet extends Applet
|
||||
}
|
||||
*/
|
||||
|
||||
// these need to be inited before setup
|
||||
libraries = new PLibrary[10];
|
||||
libraryCalls = new boolean[10][PLibrary.CALL_COUNT];
|
||||
|
||||
// call the applet's setup method
|
||||
setup();
|
||||
|
||||
@@ -235,9 +239,6 @@ public class PApplet extends Applet
|
||||
this.width = g.width;
|
||||
this.height = g.height;
|
||||
|
||||
libraries = new PLibrary[10];
|
||||
libraryCalls = new boolean[10][PLibrary.CALL_COUNT];
|
||||
|
||||
try {
|
||||
getAppletContext();
|
||||
online = true;
|
||||
@@ -310,6 +311,8 @@ public class PApplet extends Applet
|
||||
libraries[libraryCount] = library;
|
||||
libraryCalls[libraryCount] = new boolean[PLibrary.CALL_COUNT];
|
||||
libraryCount++;
|
||||
|
||||
library.setup(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -339,6 +342,7 @@ public class PApplet extends Applet
|
||||
public void registerCall(PLibrary library, int call) {
|
||||
for (int i = 0; i < libraryCount; i++) {
|
||||
if (libraries[i] == library) {
|
||||
//println("registering call # " + call + " to " + library);
|
||||
libraryCalls[i][call] = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user