Open benfry opened 4 years ago
Are you trying to remove all AWT usage or just allow headless (for eg. LWJGL use)? Because large portion of Processing AWT code, such as in PImage, PFont, etc. works fine headless.
As per @sampottinger comment, LWJGL might be better placed in terms of library integration to allow a complete removal of AWT / java.desktop dependencies for a particular renderer. @benfry interesting page, but surprised to see LWJGL still under discussion - thought that had been dropped? My issue to discuss necessary changes to PApplet to support it were closed.
Several changes necessary to move image handling into
Surface
so that we're not invoking AWT.However, if that's done, we need to replace the image loading for JOGL and JavaFX as well, or have those subclass a LameKindaSurfaceAWT which has the AWT code.
There's a constructor, resizer, and some IO options in
PImage
that all make use of AWT code. These will all be moved toPImageJava2D
inside theprocessing.awt
package, but will need replacements for JOGL and JavaFX.