Jakub Valtar
7137cd9701
Emulate keyTyped for OpenGL sketches
2015-08-17 19:17:03 -04:00
Ben Fry
196a742086
remove unused import, note changes
2015-08-17 08:33:44 -04:00
Jakub Valtar
55d154b136
Improve OpenGL extensions checks
2015-08-16 22:37:09 -04:00
Ben Fry
4e6d601d79
Merge pull request #3628 from JakubValtar/remove-fixed-func
...
Fix OS X shader issues
2015-08-16 07:51:29 -04:00
Jakub Valtar
db6ab44cbe
These need preprocessing too
2015-08-15 21:00:20 -04:00
Jakub Valtar
5910f49970
Fix another bunch of vert/frag typos
2015-08-15 20:45:59 -04:00
Jakub Valtar
2a377ae4ce
Fix typo: swapped vert and frag shader loading
2015-08-15 20:32:48 -04:00
Jakub Valtar
0d3d54ac08
Remove hardcoded shader versions
2015-08-15 20:17:21 -04:00
Jakub Valtar
cb83147d74
Detect GLSL version and preprocess to that
2015-08-15 11:03:12 -04:00
gohai
c5667e7f91
Copy Jakub's shader changes to the quirky vc4 version
...
We want to make it easy to diff between the two. Still works on the Pi's VC IV driver.
2015-08-15 15:59:50 +02:00
Ben Fry
f2c699bcac
Merge pull request #3606 from JakubValtar/remove-fixed-func
...
Remove debug code
2015-08-15 08:49:33 -04:00
Jakub Valtar
aad177546b
Remove debug code
2015-08-14 21:03:42 -04:00
Ben Fry
fd677db030
turn off attempted fixes
2015-08-14 20:42:24 -04:00
Jakub Valtar
56efb3c6e7
Get max core profile on OSX
2015-08-14 19:27:36 -04:00
Jakub Valtar
f674a2e2ed
Fixed typos in shader preprocessing
2015-08-14 19:13:36 -04:00
Jakub Valtar
91f96a54c5
Enabling textures rubs OpenGL the wrong way
...
This is was deprecated with fixed-function pipeline
2015-08-14 17:53:03 -04:00
Jakub Valtar
7f5b5cd1df
Remove shader compilation warnings on Intel
2015-08-14 17:51:07 -04:00
Jakub Valtar
eb7469a1f3
Preprocess shaders on MACOSX
...
MACOSX OpenGL core profile requires GLSL 1.30, so we have to rename a
few things to make it happy
2015-08-14 17:50:14 -04:00
Jakub Valtar
38930b5f4b
Fix depth and stencil bits getters
2015-08-14 16:12:32 -04:00
Jakub Valtar
bfe1470614
Request programmable GL profile
2015-08-14 16:09:16 -04:00
Ben Fry
2c6d000310
Merge pull request #3592 from JakubValtar/bugfix-pimage-blend
...
Fix Java2D blending issues
2015-08-13 22:34:09 -04:00
Ben Fry
d68f057b99
implement add(x, y) and sub(x, y) in PVector ( fixes #3593 )
2015-08-13 20:59:03 -04:00
Jakub Valtar
9ade216660
Rename low/high to min/max
2015-08-13 17:07:50 -04:00
Jakub Valtar
99d75aa9b0
Java2D blend mode revision
2015-08-13 17:03:31 -04:00
codeanticode
d286b0918d
removed debug message
2015-08-13 16:01:39 -04:00
Ben Fry
dbd264205b
Merge pull request #3523 from JakubValtar/remove-alpha-filler
...
Remove alpha filler
2015-08-13 14:18:39 -04:00
Ben Fry
19abc304aa
improve string breaking performance with edge case ( fixes #211 )
2015-08-13 14:14:16 -04:00
codeanticode
70439a6a63
put report() back in its original position, explain why
2015-08-13 14:07:16 -04:00
Ben Fry
6acb09c385
add extra test case for text layout ( fixes #3487 )
2015-08-13 12:24:26 -04:00
codeanticode
d9c4962ced
enable layer FBO layer when no background is called, so there should be
...
no need for surface hack.
2015-08-13 11:18:03 -04:00
Ben Fry
332c849a30
change how sketch path is calculated to go relative to the .jar
2015-08-12 19:35:56 -04:00
codeanticode
d4f6856d85
new arg in drawTexture() allows to set pixel factor, which sometimes
...
needs to be 1 even in HDPI
2015-08-12 08:47:44 -04:00
Ben Fry
7ae9b1f58d
Merge pull request #3583 from gohai/arm-3.0-for-ben7
...
Second bunch of arm patches (v5)
2015-08-11 19:36:40 -04:00
gohai
bd41cb5f6c
Reduce the maximum number of lights to 2 for vc4 (v2)
...
This is to work around register allocation failures in the new mesa vc4 driver. Eric wants to implement a pre-register-allocation scheduling pass, which might help, but for the time being reduce the maximum number of lights to 2, which is what lights() needs.
2015-08-12 01:09:01 +02:00
Xerxes Rånby
0b099e2de7
Hack around some calls that caused runtime exceptions when using Broadcom's VC IV driver
...
Note: VC IV is the old, binary driver. Still it'd be interesting to see how well this can be made to work with some recent JOGL work. Initial patch by xranby, conditionals by gohai.
2015-08-12 01:09:00 +02:00
gohai
965e383b5d
Request GL2ES2 instead of GL2ES1 on ARM
...
Based on discussion with xranby & discussed with Andres. Current Processing needs shader support so select GLES2 over GLES1. This shouldn't matter for any desktop GPU since we're using a GL there any anyway.
2015-08-12 01:08:36 +02:00
Ben Fry
926ce0a49a
implement focused, focusGained(), focusLost() in OpenGL ( fixes #3564 )
2015-08-11 14:40:52 -04:00
Ben Fry
0bb26f0e0d
break out the infinity and NaN cases to simplify the error message
2015-08-11 12:12:49 -04:00
Ben Fry
9433ba2a7b
print warning with bad map(), also add nf(float) ( #3314 )
2015-08-11 12:06:36 -04:00
codeanticode
98a3da31bc
wrong arguments in ortho() call
2015-08-11 08:34:33 -04:00
codeanticode
234f494b03
fixes wrong calculation of pixel buffer
2015-08-11 07:48:59 -04:00
Jakub Valtar
555c6e8ead
Make bilinear weights always sum to one
2015-08-10 15:03:33 -04:00
Jakub Valtar
66725a7c9d
Fix off-by-one error when blending onto itself
2015-08-08 19:08:47 -04:00
Ben Fry
9b217d1f9e
Merge pull request #3553 from JakubValtar/bugfix-pshape-setvertex
...
Fix null pointer exception in setVertex
2015-08-08 15:00:27 -04:00
Ben Fry
b7d5f987ad
add workaround for setTitle() resetting cursor() ( fixes #3472 )
2015-08-08 14:54:17 -04:00
Jakub Valtar
dea4b450bd
Fix null pointer exception in setVertex
2015-08-08 14:49:48 -04:00
Ben Fry
e23c23363a
throw an error when using methods that require sketchPath outside setup() ( #3433 )
2015-08-08 14:41:22 -04:00
codeanticode
154b379b6c
making sure everything is flushed when calling lights()
2015-08-07 10:43:31 -04:00
codeanticode
31a4dbbf37
flush geometry before disabling/enabling lighting
2015-08-07 10:41:36 -04:00
Ben Fry
81c0732f22
change how size(displayWidth, displayHeight) works ( fixes #3545 )
2015-08-07 10:06:08 -04:00