Basic app lifecycle / surface creation.

This commit is contained in:
charlotte 🌸
2025-10-22 17:42:30 -05:00
parent 33b8b5289d
commit bc5a52425d
13 changed files with 1970 additions and 515 deletions

View File

@@ -342,6 +342,9 @@ public class Runner implements MessageConsumer {
// No longer needed / doesn't seem to do anything differently
//params.append("-Dcom.apple.mrj.application.apple.menu.about.name=" +
// build.getSketchClassName());
// required for GLFW and Metal when using WebGPU
params.append("-XstartOnFirstThread");
}
/*
if (Platform.isWindows()) {
@@ -380,6 +383,10 @@ public class Runner implements MessageConsumer {
// http://processing.org/bugs/bugzilla/1188.html
params.append("-ea");
// we need to open up access to internal jdk modules for libraries that use reflection
// this will break at some point in the future when these modules are removed from the jdk :(
params.append("--enable-native-access=ALL-UNNAMED");
return params;
}
@@ -508,6 +515,9 @@ public class Runner implements MessageConsumer {
}
*/
// TODO: excise AWT to make webgpu work properly
params.append(PApplet.ARGS_DISABLE_AWT);
params.append(build.getSketchClassName());
}
// Add command-line arguments to be given to the sketch itself