Adding set(boolean) methods + fix w in set(int) method
Fix for issue processing/processing#1994
Image transparency for PDF output

Before, drawing an image with transparency would result in black, opaque pixels in the PDF file. This change, figured out together with Jürg Lehni, fixes this. At its core, switching from drawImage(img, int, int, int, int, int, int, int, int, null) to drawImage(img, int, int, null) seems to do the trick - so this might have been a bug in iText all along.

Signed-off-by: Jürg Lehni <juerg@scratchdisk.com>
Signed-off-by: Gottfried Haider <gottfried.haider@gmail.com>
Add support for custom source regions in imageImpl

As suggested by Ben
takes care of #2102 by reverting setAmbient to false if it was false
before calling popStyle()
slightly different ortho() setup in P2D allows for identity modelview
get gl objects also in init() and reshape() events
sets the resized native font in PGraphicsOpenGL, fix #2109
correctly implements SUBTRACT blend mode
some simplifications to the shader code
some shader aliases
some debugging
Ignored bin in experimental
Revalidating the PApplet on resize, so child components (like GLCanvas)
scale accordingly.
Added reinitSurface() method to PGL/PJOGL backend. Does not destroy the
active canvas and keeps the current capabilities, but triggers a reset of
the allocated FBOs.
Changed setSize logic:
SetSize only sets the sized flag. All the rest is done directly before
draw. Force reallocation of lights and transformation matrices (might
get garbled during resize...). Do not perform a full init of the primary
surface but rather a light version...
create PMatrix2D or 3D in PShapeOpenGL depending on value of is3D
Not getting gl context on reshape.
Added STENCIL_TEST -> GL.STENCIL_TEST field to PGL/PJOGL
Reapplying settings when the renderer has been sized, but not outside actual
GLCanvas/NEWTWindow display context.
Calling gl things when not told to by GLCanvas leads to very bad effects,
because GLCanvas might do an internal rebuild on resiszing the component,
leading to all sorts of NullPointer and native issues.