mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
add support for PApplet.main(Class c)
This commit is contained in:
@@ -10038,8 +10038,8 @@ public class PApplet implements PConstants {
|
||||
* Convenience method so that PApplet.main(YourSketch.class)
|
||||
* launches a sketch, rather than having to call getName() on it.
|
||||
*/
|
||||
static public void main(final Class<?> mainClass) {
|
||||
main(mainClass.getName(), null);
|
||||
static public void main(final Class<?> mainClass, String... args) {
|
||||
main(mainClass.getName(), args);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user