Ben Fry
76eeaccedc
normalize the behavior of remove() in the Dict classes
2019-01-20 09:52:29 -08:00
Ben Fry
de20fffba7
more notes about font issues and performance
2019-01-18 15:59:15 -08:00
Ben Fry
9e14f98ec3
adding circle, square, push, pop
2019-01-18 15:59:05 -08:00
Ben Fry
eb60ee2d05
add push() and pop()
2019-01-18 15:17:51 -08:00
Ben Fry
ed165727a3
add circle() and square()
2019-01-18 15:16:21 -08:00
Ben Fry
75efd1a212
greatly improve startup slowness on systems that have a lot of fonts installed
2019-01-18 14:32:22 -08:00
Ben Fry
fca49356b3
cleanups for default font warning ( #5606 and #5481 )
2019-01-18 12:02:56 -08:00
Ben Fry
642f9a4495
Merge pull request #5605 from FlorisVO/master
...
Shows a warning when createFont can't find a named font (#5481 )
2019-01-18 11:50:24 -08:00
Ben Fry
ab6cd9f922
additional cleanup to SVG code after incorporating #4168
2019-01-18 11:44:12 -08:00
Ben Fry
f82e7039d7
Merge pull request #4168 from poqudrof/master-origin
...
Extended support of SVG format
2019-01-18 11:35:32 -08:00
Ben Fry
69bee72578
remove unnecessary cast
2019-01-18 09:55:51 -08:00
codeanticode
6739c2c862
create attribute in setAttrib() functions if does not exist, and also fix indexing bug
2019-01-15 13:33:04 -05:00
codeanticode
5d05885774
set tessGeo when collecting custom vertex attributes
2019-01-15 13:30:24 -05:00
Ben Fry
a23efc8c9c
Merge pull request #5699 from JakubValtar/fix-pgraphicsopengl-setsize
...
Recreate FBOs when offscreen PGraphicsOpenGL is resized
2019-01-11 19:42:36 -05:00
Ben Fry
6d2c788819
Merge pull request #5698 from JakubValtar/fix-poly-vertex-buffer
...
Fix vertex buffer initialized with wrong number of components
2019-01-11 19:41:45 -05:00
Ben Fry
2aba49c756
Merge pull request #5697 from JakubValtar/improve-frame-rate
...
Stop frame rate counter from exaggerating
2019-01-11 19:40:52 -05:00
Ben Fry
a8d993c87b
Merge pull request #5674 from JakubValtar/fix-ctrl-click
...
Make sure Ctrl+Left Mouse on MacOS is consistent
2019-01-11 19:37:22 -05:00
codeanticode
6df06674f0
check if pixels is null
2019-01-10 08:19:13 -05:00
codeanticode
a6a57e80f3
removed use of transform stack in PShapeOpenGL
2019-01-10 06:49:40 -05:00
codeanticode
7e59e4c578
added 2D version of invMatrix utility methods
2019-01-10 06:47:07 -05:00
codeanticode
6cfe24af2f
unload pixels if only used to init texture
2019-01-10 05:14:24 -05:00
Jakub Valtar
d77543a3c9
Recreate FBOs when offscreen PGraphicsOpenGL is resized
...
Otherwise FBOs keep the old size and things understandably break.
2018-11-07 22:47:38 +01:00
Jakub Valtar
809115c131
Fix buffer initialized with wrong number of components
...
Poly vertex buffer was initialized with 3 components, but has 4.
2018-11-07 22:30:11 +01:00
Jakub Valtar
b237961450
Stop frame rate counter from exaggerating
...
Frame rate counter finally gets its ticket for speeding.
Frame rate is now calculated by averaging frame times instead of averaging frame rates. Rationale is explained in the comment.
2018-11-07 22:24:45 +01:00
Jakub Valtar
d512d21fcf
Move Ctrl+Left Mouse code from surfaces to PApplet
2018-10-09 09:19:36 +02:00
Jakub Valtar
eb64449f9b
Make sure Ctrl+Left Mouse on MacOS is consistent
...
Make sure PRESS, DRAG and RELEASE report the same mouse button on MacOS.
- If CTRL was pressed during Left PRESS, report Right Button until the button is released, regardless of whether CTRL is still down.
- If CTRL was not pressed during Left PRESS, report Left Button until the button is released, regardless of CTRL state.
Fixes #5672
2018-10-07 21:55:14 +02:00
Ben Fry
d25aa1b322
Merge branch 'master' of github.com:processing/processing
2018-09-14 10:09:56 -04:00
Ben Fry
4003c9a3c7
back out bad text() fix for tabs, other notes
2018-09-14 10:09:54 -04:00
Sigmund Hansen
07e5d319e4
Fixes blend mode not being set correctly, fixing #5645 .
2018-09-10 15:27:50 +02:00
Ben Fry
434c78ed2e
additional tweak for tab width change
2018-08-30 12:30:24 -04:00
Ben Fry
699359760e
Merge pull request #5633 from liquid600pgm/master
...
Fix for #5625 - Made tab widths consistent across renderers
2018-08-30 12:28:32 -04:00
Ben Fry
8c1b52e40b
Merge pull request #5626 from hbs/jdk11
...
Fixed for JEP-223 support
2018-08-30 12:17:59 -04:00
Ben Fry
360a858d96
notes about where AWT imports are used in PApplet
2018-08-28 09:58:57 -04:00
lqdev
75c9c9729d
Fixed issue #5625
...
Made tab widths consistent across renderers
2018-08-27 18:04:07 +02:00
Mathias Herberts
a6c7f22e91
Fixed for JEP-223 support
2018-08-19 12:15:29 +02:00
Ben Fry
86e2d0f6bb
make the quote() methods public in JSONObject
2018-08-17 06:50:01 -07:00
Floris
c55bf37684
Add a warning to findFont() when a font isn't found (and the default font is used).
2018-08-03 12:20:49 +02:00
Ben Fry
382e0581ce
Merge pull request #5522 from JakubValtar/fix-java2d-blending
...
Make sure Java2D is backed by INT_ARGB image
2018-07-26 15:24:39 -04:00
Ben Fry
15472d3cab
cleaning up from #5550
2018-07-25 11:44:54 -04:00
Ben Fry
720752d001
Merge pull request #5549 from alexrj/pshape-contains
...
Finish implementation of PShape.contains()
2018-07-24 19:21:01 -04:00
Ben Fry
01ed1babb0
Merge pull request #5550 from alexrj/pshape-group-contains
...
Support PShape.contains() on GROUP objects
2018-07-24 19:19:51 -04:00
Ben Fry
c7579ed92e
Merge pull request #5526 from liquid600pgm/master
...
Fixed a crash occuring while loading certain SVGs exported from Adobe Illustrator
2018-07-24 18:44:43 -04:00
gohai
4d15acae44
OpenGL ES: Fix GLSL version number for 1.00 ( #5582 )
...
Wikipedia had it wrong: the spec for the OpenGL ES Shading Language Version 1.00 defines the version preprocessor directive as "#version 100", and _not_ "#version 100 es", like version 3.00+ of the language wants it.
This made the Raspberry Pi with the legacy driver unhappy. Thanks @DangusTaargus for reporting.
see https://www.khronos.org/files/opengles_shading_language.pdf
2018-07-20 11:41:47 -07:00
gohai
d8a2fd8cc7
Unconditionally disable POLYGON_SMOOTH in restoreGL()
...
This now matches the logic in setGLSettings(), as suggested by @JakubValtar.
2018-06-26 19:14:08 -07:00
gohai
3da84a9874
ARM Mali: Don't use GL_MULTISAMPLE or GL_POLYGON_SMOOTH on ES
...
Fixes:
GLDebugEvent[ id 0x32
type Error
severity High: dangerous undefined behavior
source GL API
msg Error:glEnable::<cap> is not one of the accepted values
when 1524184964512
source 3.1 (ES profile, arb, debug, compat[ES2, ES3, ES31], FBO, hardware) - OpenGL ES 3.1 v1.r17p0-01rel0.a881d28363cdb20f0017ed13c980967e - hash 0x1f928e9]
[2]: jogamp.opengl.GLDebugMessageHandler$StdErrGLDebugListener.messageSent(GLDebugMessageHandler.java:347)
[3]: jogamp.opengl.GLDebugMessageHandler.sendMessage(GLDebugMessageHandler.java:332)
[4]: jogamp.opengl.GLDebugMessageHandler.glDebugMessageARB(GLDebugMessageHandler.java:358)
[5]: jogamp.opengl.es3.GLES3Impl.dispatch_glEnable1(Native Method)
[6]: jogamp.opengl.es3.GLES3Impl.glEnable(GLES3Impl.java:734)
[7]: com.jogamp.opengl.DebugGLES3.glEnable(DebugGLES3.java:2121)
[8]: processing.opengl.PJOGL.enable(PJOGL.java:1068)
[9]: processing.opengl.PGraphicsOpenGL.setGLSettings(PGraphicsOpenGL.java:6784)
[10]: processing.opengl.PGraphicsOpenGL.checkSettings(PGraphicsOpenGL.java:6740)
[11]: processing.opengl.PGraphicsOpenGL.beginDraw(PGraphicsOpenGL.java:1463)
[12]: processing.core.PApplet.handleDraw(PApplet.java:2388)
[13]: processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:866)
[14]: jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
[15]: jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
[16]: jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
[17]: jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
[18]: jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
[19]: com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
[20]: com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
[21]: com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
[22]: com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
[23]: java.util.TimerThread.mainLoop(Timer.java:555)
[24]: java.util.TimerThread.run(Timer.java:505)
2018-06-26 19:14:08 -07:00
Alessandro Ranellucci
d49ba8864c
Finish implementation of PShape.contains() by considering the transformation matrix before checking for point inclusion. #1280
2018-06-15 16:20:25 +02:00
Alessandro Ranellucci
e3cdf37965
Support PShape.contains() on GROUP objects by looping through its children (unsupported children will be skipped gracefully)
2018-06-15 16:16:58 +02:00
lqdev
ba9dc95443
Removed unneccessary java.util.Arrays import
2018-06-05 20:47:25 +02:00
lqdev
2eb3c7d777
Fixed a crash with SVGs from Adobe Illustrator
2018-06-05 20:27:50 +02:00
Jakub Valtar
0174387a68
Make sure Java2D is backed by INT_ARGB image
...
It would be nice to use a possibly faster compatible image, but all our code expects non-premultiplied INT_ARGB so sticking to it for now.
Fixes #5519
2018-06-01 22:40:24 +02:00