Commit Graph

2303 Commits

Author SHA1 Message Date
codeanticode
093bc6cde6 complete scaling/translations when the shape is 3D 2013-10-20 00:51:41 -04:00
codeanticode
26da73d422 some edits, additional null checks in PJOGL 2013-10-19 20:20:27 -04:00
codeanticode
6c1b4ee095 updated to JOGL 2.1.1, fix #2136 2013-10-19 14:15:06 -04:00
codeanticode
9b4060b6e9 removed some commented out code 2013-10-19 14:00:31 -04:00
codeanticode
f33ca59c5f removed shader inner-classes in PGraphicsOpenGL, now everything is in
PShader
2013-10-19 09:29:44 -04:00
codeanticode
0e6dc98dc1 update PShape tessellation when requesting vertex codes 2013-10-18 21:09:38 -04:00
codeanticode
30ce02d0ec reset curveVertexCount when tessellating a polygon PShape 2013-10-18 16:15:32 -04:00
codeanticode
321660f115 fix #2151 2013-10-18 15:45:31 -04:00
codeanticode
bb4da2575e removed some old code 2013-10-18 15:06:47 -04:00
codeanticode
ceb1396b72 using internal stroke arrays in line tessellation too 2013-10-18 14:59:47 -04:00
codeanticode
661f0746db properly separating fill and stroke poly/path tessellation 2013-10-18 14:17:34 -04:00
codeanticode
386a21ab56 some fixes to the path tessellation 2013-10-18 12:08:33 -04:00
codeanticode
31b9f385f5 finished implementing new path tessellation using vertex codes 2013-10-18 11:44:20 -04:00
codeanticode
3231d63fbd fixed handling of breaks 2013-10-17 18:55:24 -04:00
codeanticode
d0411d434d don't use breaks array in addPolygonEdges 2013-10-17 16:37:19 -04:00
codeanticode
7d7bec942f Merge branch 'master' of https://github.com/processing/processing.git 2013-10-16 15:30:13 -04:00
Ben Fry
901a4bf1c1 argh, this println() thing is a mess... 2013-10-16 11:39:09 -04:00
codeanticode
2636366a18 removed unnecessary references to curveVertexCount 2013-10-16 00:16:50 -04:00
codeanticode
92755a2b1a a few more 2013-10-16 00:14:12 -04:00
codeanticode
62f07ec9ce a couple of tweaks 2013-10-16 00:13:51 -04:00
codeanticode
d7e2a65cc0 tessellatePolygon() should be done now 2013-10-15 23:56:48 -04:00
codeanticode
626bc8f70c removed first,last vertex and count from InGeometry, implementing vertex
codes
2013-10-15 23:41:42 -04:00
KiwiStrongis
0cfd53520e added PMatrix.preApply( PMatrix) to resolve Issue #2145 2013-10-15 17:57:54 -04:00
Ben Fry
cf559b4a90 resolution for println() issues 2013-10-12 18:01:16 -04:00
Ben Fry
f7dc181bbe textureMode(REPEAT) throws an error (#2052) 2013-10-11 20:37:19 -04:00
Ben Fry
c1b076ba07 fix indents for child elements when using -1 (#2119) 2013-10-11 19:27:10 -04:00
Ben Fry
316a600a9d looking for a better solution here 2013-10-11 19:15:01 -04:00
Ben Fry
ef93f09b9c add varargs to print() and println() (#2056) 2013-10-11 18:25:41 -04:00
Ben Fry
c88b412fd4 fix up file selection dialogs 2013-10-09 00:21:53 -04:00
codeanticode
2acfefddf0 first load attributes for custom shaders 2013-10-07 19:14:33 -04:00
codeanticode
4a4329715b Merge branch 'master' of https://github.com/processing/processing.git 2013-10-07 18:48:52 -04:00
codeanticode
bb1c16c7fc some more tweaks to shader loading and selection 2013-10-07 18:48:19 -04:00
Ben Fry
82cdd12f89 Merge branch 'master' of github.com:processing/processing 2013-10-07 16:21:56 -04:00
Ben Fry
54c9409d5d constrain lerpColor() between 0 and 1 2013-10-07 16:21:49 -04:00
Benjamin Maus
d338bdebab Not reapplying settings after sizing, because it calls smooth() without
parameters.
With smooth(4) called in setup, this would lead do a complete
reinitialization of the canvas and thus crashing natively...
2013-10-07 15:32:38 +02:00
codeanticode
40198890bb solved some issues in PShader, better handling of gl buffers when using
built-in shaders
2013-10-07 00:30:15 -04:00
codeanticode
023a3b21ef using CORNER for rectMode and ellipseMode by default in PShapeOpenGL,
fix #2086
2013-10-06 17:51:14 -04:00
codeanticode
d258654f85 removed unused import 2013-10-06 17:44:23 -04:00
codeanticode
b4a54cf269 use PApplet.match() to detect shader types. 2013-10-06 17:33:55 -04:00
codeanticode
ce2cb00f63 better logic of shader type detection 2013-10-06 16:20:50 -04:00
Ben Fry
a581cc7550 Java2D images crash after being resized (#2113) 2013-10-06 16:16:41 -04:00
codeanticode
1604cfd001 fix #2097 2013-10-06 15:27:46 -04:00
Benjamin Maus
28b53e4959 Not reinitializing the backing arrays for matrices and lights.
Not needed and seems to blow up some bound buffers.
2013-10-06 10:58:28 +02:00
Benjamin Maus
98108a4c0a 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.
2013-10-06 10:56:21 +02:00
Benjamin Maus
ec89911766 Added STENCIL_TEST -> GL.STENCIL_TEST field to PGL/PJOGL 2013-10-06 10:52:00 +02:00
Benjamin Maus
3bf0166518 Not getting gl context on reshape. 2013-10-06 10:51:14 +02:00
codeanticode
2a7d4ffba2 create PMatrix2D or 3D in PShapeOpenGL depending on value of is3D 2013-10-05 13:39:29 -04:00
Benjamin Maus
eed5103751 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...
2013-10-05 18:38:46 +02:00
Benjamin Maus
047d771fb7 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.
2013-10-05 18:35:55 +02:00
Benjamin Maus
b68a7834e3 Revalidating the PApplet on resize, so child components (like GLCanvas)
scale accordingly.
2013-10-05 18:33:18 +02:00