mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 21:29:17 +01:00
more good times
This commit is contained in:
@@ -231,7 +231,9 @@ public class PdePreprocessor {
|
||||
*/
|
||||
void writeHeader(PrintStream out, String imports[],
|
||||
String className) {
|
||||
//out.print("package pootime;");
|
||||
|
||||
// must include processing.core
|
||||
out.print("import processing.core.*; ");
|
||||
|
||||
// emit emports that are needed for classes from the code folder
|
||||
if (imports != null) {
|
||||
@@ -260,7 +262,7 @@ public class PdePreprocessor {
|
||||
|
||||
if (programType == STATIC) {
|
||||
// now that size() and background() can go inside of draw()
|
||||
out.print("void draw() {");
|
||||
out.print("public void draw() {");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ compiler.output_parse_tree = false
|
||||
compiler.jdk_version = 1.1
|
||||
|
||||
# base imports to include for java 1.1 (or higher)
|
||||
compiler.imports.jdk11 = processing.core,java.applet,java.awt,java.awt.image,java.awt.event,java.io,java.net,java.text,java.util,java.util.zip,netscape.javascript
|
||||
compiler.imports.jdk11 = java.applet,java.awt,java.awt.image,java.awt.event,java.io,java.net,java.text,java.util,java.util.zip,netscape.javascript
|
||||
|
||||
# additional imports when exporting to java 1.3 or higher
|
||||
compiler.imports.jdk13 = javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi
|
||||
|
||||
8
todo.txt
8
todo.txt
@@ -228,6 +228,12 @@ X ask creas about src or dest in image functions
|
||||
X finish imaging api
|
||||
X modify make.sh to build processing.core
|
||||
|
||||
040708 afternoon
|
||||
X lots of work on making packaged classes work
|
||||
X modify preproc to handle "void setup" -> "public void setup"
|
||||
o preproc bug: text(String.valueOf(i+1), left + i*20, top);
|
||||
o unexpected token "String"
|
||||
|
||||
_ casting working properly.. int() maps to toInt()?
|
||||
_ what is performance hit for this thing?
|
||||
_ processing.app -> PdeBase, PdeEditor..
|
||||
@@ -346,8 +352,6 @@ _ but also potential stop() for individual items
|
||||
|
||||
|
||||
BUGS / preproc
|
||||
_ preproc bug: text(String.valueOf(i+1), left + i*20, top);
|
||||
_ unexpected token "String"
|
||||
_ casting problems in the parser
|
||||
_ float u = float(x)/width; works.
|
||||
_ float u = (float(x)/width); doesn't work: "unexpected token: float".
|
||||
|
||||
Reference in New Issue
Block a user