Commit Graph

297 Commits

Author SHA1 Message Date
codeanticode
b4c27e8e75 added static param glBufferAccess to PGL to control buffer access policy during buffer streaming 2022-03-03 16:50:06 -05:00
Ben Fry
4f221b74de clearing out a lot of intellij warnings 2022-01-10 22:09:57 -05:00
codeanticode
bfb33e65ce put the gl usage in PGL 2021-08-07 05:57:18 -04:00
codeanticode
b5d35b9f66 more consistent handling of buffer usage 2021-08-07 05:40:07 -04:00
codeanticode
bcea9315ad refactoring, and supporting buffer object streaming in immediate mode 2021-08-07 04:12:36 -04:00
codeanticode
22e50769b4 updated date in license notice in opengl renderer files 2021-08-06 23:03:33 -04:00
Ben Fry
cc39c94d1d fix for #50, alternate solution but based on #75 2020-04-27 14:34:57 -04:00
Liam James
f80f1ed0e2 Migrate array declaration fixes from #5981 2020-01-19 10:18:08 +10:00
Ben Fry
269f626f98 incorporate https://github.com/processing/processing/pull/5881 for FBO fix on Intel HD Graphics 3000 devices 2019-10-07 18:27:24 -04:00
Ben Fry
8f994389c4 introduce MACOS constant, deprecate MACOSX 2019-10-07 18:23:34 -04:00
gohai
df974e265f ARM Mali: Don't assume anisotropic filtering for gl3es3
Fixes:
GLDebugEvent[ id 0xb
    type Error
    severity High: dangerous undefined behavior
    source GL API
    msg Error:glGetFloatv::<pname> is not an accepted value
    when 1524036153380
    source 3.1 (ES profile, arb, debug, compat[ES2, ES3, ES31], FBO, hardware) - OpenGL ES 3.1 v1.r17p0-01rel0.a881d28363cdb20f0017ed13c980967e - hash 0xc39cf5]
    [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_glGetFloatv1(Native Method)
    [6]: jogamp.opengl.es3.GLES3Impl.glGetFloatv(GLES3Impl.java:1157)
    [7]: com.jogamp.opengl.DebugGLES3.glGetFloatv(DebugGLES3.java:3260)
    [8]: processing.opengl.PJOGL.getFloatv(PJOGL.java:1106)
    [9]: processing.opengl.PGraphicsOpenGL.getGLParameters(PGraphicsOpenGL.java:6892)
    [10]: processing.opengl.PGraphicsOpenGL.beginDraw(PGraphicsOpenGL.java:1454)
    [11]: processing.core.PApplet.handleDraw(PApplet.java:2388)
    [12]: processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:866)
    [13]: jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
    [14]: jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
    [15]: jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
    [16]: jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
    [17]: jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
    [18]: com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
    [19]: com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
    [20]: com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
    [21]: com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
    [22]: java.util.TimerThread.mainLoop(Timer.java:555)
    [23]: java.util.TimerThread.run(Timer.java:505)
2018-04-18 07:48:28 -07:00
gohai
590f8ad33c ARM Mali: Specify precision for _fragColor
Fixes:
S0032: no default precision defined for variable '_fragColor'
2018-04-17 23:24:04 -07:00
gohai
24bb79928b ARM Mali: Report "es" as part of GLSL versions
Fixes:
P0007: Language version '300' unknown, this compiler only supports up to version '320 es'
2018-04-17 18:19:29 -07:00
codeanticode
6ff0c6f3e6 reset correct clear variable 2018-01-18 10:15:29 -05:00
codeanticode
e9707b81a0 some additions to the PLG.Tessellator interface 2018-01-13 14:16:02 -05:00
Jakub Valtar
4bb1d9e373 Update shader preprocessing to strip version correctly
Previously the whole line was removed, now only the end of the line is
removed to handle the case when version is in a comment
2017-07-21 11:41:53 +02:00
Jakub Valtar
9ccf77ae7c Update shader version directive check to ignore comments 2017-07-21 11:29:41 +02:00
gohai
2d70d0f28a Retry with multisampling disabled if creating a framebuffer fails because of INCOMPLETE_MULTISAMPLE 2017-02-19 09:56:50 +01:00
gohai
ba1b71a1f2 Make validateFramebuffer match latest Khronos doc for GL4
Suggested by @JakubValtar
2017-02-18 19:43:00 +01:00
gohai
f8d985a94c Report more error conditions in validateFramebuffer 2017-02-18 18:48:05 +01:00
Jakub Valtar
58df48655c Fix typo in glsl preprocessor
Add missing 2D which disappeared in

https://github.com/processing/processing/pull/4052/files#diff-88c7dd4e8f37672d20e228a71a433a6dL1889
2017-01-06 21:45:53 +01:00
codeanticode
8ad3c11f93 extra logic to make sure that the depth buffer is always clear at the
beginning of a new frame
2016-10-12 16:25:54 -04:00
codeanticode
a1dcc32044 coalesce glClear calls, fixes #4694 2016-10-12 15:38:34 -04:00
Ben Fry
12a62ae5cd Merge pull request #4416 from gohai/gles2-mipmap
Add automatic mipmap support to GLES2
2016-05-06 19:59:39 -04:00
codeanticode
f870930ed6 null buffer check 2016-05-04 21:53:09 -04:00
gohai
c3a2564750 Add automatic mipmap support to GLES2
glGenerateMipmap is supported on GL ES 2.0 and above. Compile-tested.
2016-04-20 00:59:24 +02:00
codeanticode
9438c225be Properly detect NPOT extension in GLES2 2016-03-15 10:31:48 -04:00
codeanticode
e4ed6a0184 use stop button color 2015-10-25 14:16:35 -04:00
codeanticode
8c05b63c20 use smaller close button 2015-10-25 13:39:45 -04:00
codeanticode
62ad09557e hide stop button in present mode according to export options 2015-10-25 12:29:42 -04:00
Jakub Valtar
c56f5736c2 Do not replace texture function 2015-10-23 20:20:10 +02:00
Jakub Valtar
02ceda83de Improve shader preprocessor with regex-fu
Fixes #3961
Fixes #3968
2015-10-23 20:07:37 +02:00
codeanticode
eebe7b1ae9 query max number of samples only if multisampling is supported 2015-10-12 18:47:41 +01:00
codeanticode
851aeddf7d draw/readBuffer are available in GL 2.0 and higher on desktop 2015-10-12 16:59:42 +01:00
codeanticode
6444ee35dc add flag to check whether draw/readBuffer() functions are available 2015-10-12 16:58:18 +01:00
codeanticode
3eace673a9 save/restore first frame in PGL 2015-09-26 02:05:11 -03:00
codeanticode
97511c5375 revert to strong reference to PGraphicsOpenGL in PGL 2015-09-25 11:52:48 -05:00
Ben Fry
74de38c49e Merge pull request #3863 from JakubValtar/async-saveframe
Async saveFrame
2015-09-25 09:51:38 -04:00
Jakub Valtar
f087fd320c Async pixel reader 2015-09-24 23:51:58 -04:00
Jakub Valtar
b085347485 Add some GL3ES3 functions to PGL 2015-09-24 23:10:13 -04:00
codeanticode
f379d4dd2f use weak references to PGraphicsOpenGL instances in resource classes
(framebuffers, texture, etc), should take care of #3858
2015-09-24 16:51:44 -05:00
Jakub Valtar
9c8c1ae577 Fix GL version getter for ES 2015-09-23 16:07:44 -04:00
Jakub Valtar
b2940ff066 Optimize native/Java color conversions 2015-09-21 22:48:39 -04:00
codeanticode
965edd3faf updated notices in all gl code 2015-09-15 11:39:32 -04:00
codeanticode
fac863ad6c keep deprecated requestFBOLayer() method for now. 2015-09-13 06:47:21 -04:00
codeanticode
19ff731e7c changes to facilitate android port, update copyright notices 2015-09-12 14:10:01 -04:00
codeanticode
c4855f017a more cleaning up 2015-09-08 15:40:59 -04:00
codeanticode
cdffca3e5c cleanup changes 2015-09-07 23:37:37 -04:00
codeanticode
78626a598b trying different blitting order 2015-09-07 20:37:26 -04:00
codeanticode
fef27522a9 restart FBO layer when window is resized 2015-09-07 16:02:49 -04:00