> 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:
benfry
2004-09-22 20:36:37 +00:00
parent 85de1054fe
commit 55c4dd2c82
3 changed files with 66 additions and 30 deletions

View File

@@ -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;
}
}