mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 18:10:43 +01:00
size(300, 300, OPENGL).. rewrite of present mode.. java 1.4 only.. a
zillion other runtime fixes
This commit is contained in:
@@ -181,11 +181,13 @@ public class PdePreprocessor {
|
||||
imports.copyInto(extraImports);
|
||||
|
||||
// if using opengl, add it to the special imports
|
||||
/*
|
||||
if (PdePreferences.get("renderer").equals("opengl")) {
|
||||
extraImports = new String[imports.size() + 1];
|
||||
imports.copyInto(extraImports);
|
||||
extraImports[extraImports.length - 1] = "processing.opengl.*";
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
if (codeFolderPackages != null) {
|
||||
@@ -348,19 +350,19 @@ public class PdePreprocessor {
|
||||
}
|
||||
}
|
||||
|
||||
boolean opengl = PdePreferences.get("renderer").equals("opengl");
|
||||
if (opengl) {
|
||||
out.println("import processing.opengl.*; ");
|
||||
}
|
||||
//boolean opengl = PdePreferences.get("renderer").equals("opengl");
|
||||
//if (opengl) {
|
||||
//out.println("import processing.opengl.*; ");
|
||||
//}
|
||||
|
||||
if (programType < JAVA) {
|
||||
// open the class definition
|
||||
out.print("public class " + className + " extends ");
|
||||
if (opengl) {
|
||||
out.print("PAppletGL");
|
||||
} else {
|
||||
out.print("PApplet");
|
||||
}
|
||||
//if (opengl) {
|
||||
//out.print("PAppletGL");
|
||||
//} else {
|
||||
out.print("PApplet");
|
||||
//}
|
||||
out.print(" {");
|
||||
|
||||
if (programType == STATIC) {
|
||||
|
||||
Reference in New Issue
Block a user