1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-13 00:04:19 +00:00
Commit graph

25 commits

Author SHA1 Message Date
reuk
c2d52a5499
OpenGLFrameBuffer: Automatically save/restore content when the context is paused/resumed
This addresses an issue where OpenGL-backed image content could get lost
when putting and Android app into an inactive state. This happens
because the GL context gets destroyed, freeing all associated resources.

The workaround introduced here will listen for OpenGL state-change
events, and attempt to save and restore framebuffer content into main
memory, so that the content can be restored once the app is reactivated.
2025-07-09 11:24:43 +01:00
Tom Poole
94d98a2b10 Update licensing information 2024-04-16 11:39:35 +01:00
reuk
c2949edda0
OpenGL: Avoid taking X lock when swapping buffers to reduce lock contention 2023-06-01 18:51:25 +01:00
reuk
ed15516087
OpenGL: Use newer GLX APIs 2023-06-01 18:51:06 +01:00
Anthony Nicholls
05d5c94990
Native: Rename all native files for improved consistency 2023-04-04 19:54:29 +01:00
Felipe F. Tonello
c2100022cc Added several linux improvements to the event loop, MIDI and X11 (see commit messsage)
MIDI: Several ALSA Seq improvements
===================================

Many things were done in this patch (I couldn't really split in several
patches):
 * Only one ALSA Sequencer client per application
 * ALSA Sequencer client name is the application's name by default
 * Fixed a bug when getDeivces() would return devices created by the
   application itself
 * Only ports created with createNewDevice() are allowed to be subscribed,
   other ports (created by openDevice()) doesn't allow subscription
 * AlsaPort is now handled by AlsaClient, basically having the proper
 representation such as the ALSA Sequencer has.

Files: Fix default directory paths
==================================

Some information on:
* Linux LSB FHS:
  http://www.linuxfoundation.org/collaborate/workgroups/lsb/fhs-30
* https://wiki.archlinux.org/index.php/Xdg_user_directories

Refactor Event loop to remove X11 dependency
============================================

The goal of this refactor was to remove X11 dependencies on juce_events
to enable non-gui applications (example, Embedded Linux apps) to have no
libx11 dependency.

The side-effect of this refactor is easy implementation of other Linux
graphical back-end, cleanup some code, better handling of X displays and
other benefits.

I removed a lot of the code from juce_linux_Windowing to separate files
for clarity. I also renamed all Linux X11 files to *linux_X11* instead of
just *linux*.

X11: Remove unnecessary XGrabButton call
========================================

This call is made unnecessary if used proper window flags when a window
is created.
2017-02-13 17:14:34 +00:00
hogliux
c7b8e77031 Update copyright notice 2015-07-22 15:59:34 +01:00
hogliux
effdc661ca Fix correct repainting of OpenGLContexts if a non-compositing window manager is used on linux 2015-07-08 17:09:59 +01:00
jules
0c99e8e068 Minor cleanups 2015-05-25 10:05:33 +01:00
hogliux
c76876d388 Adds proper per-monitor scaling support on linux 2015-05-13 10:35:19 +01:00
jules
1952ed195e Whitespace 2015-05-05 12:19:52 +01:00
hogliux
8c242b7547 Fix warnings on linux
Linux now compiles (clang++-3.5) without warnings when the following is enabled (these flags are identical to equator mac warnings):
-Wreorder -Wconstant-conversion -Wint-conversion -Woverloaded-virtual -Wuninitialized -Wunused-parameter -Wshorten-64-to-32 -Wstrict-aliasing -Wshadow -Wconversion -Wsign-compare -Werror -Wsign-conversion
2015-05-05 10:57:50 +01:00
jules
272bcbcaab Added a method OpenGLContext::setOpenGLVersionRequired, which can be used to request a v3.2 context. 2014-03-11 10:24:31 +00:00
jules
30cc1ed757 Added flags for multisampling in GL, and implementation of this for iOS. 2013-07-23 17:38:25 +01:00
jules
03c2801f3f Copyright header update in all module files. juce_core modules are now ISC licensed. All other modules are GPLv2/3/AGPLv3 2013-06-13 13:17:12 +01:00
jules
25c70643e3 OpenGL linux fix, and removed some deprecated GL calls. 2013-03-28 13:13:10 +00:00
jules
0ceeb573d8 Minor changes to avoid pedantic compiler warnings. 2012-12-04 21:39:15 +00:00
jules
842d30fbfa Minor tidying-up. 2012-09-04 11:38:16 +01:00
jules
52aae5ed06 Fixed linux opengl compile error. 2012-05-08 15:38:19 +01:00
jules
68024fb8aa Changed OpenGLContext to take a native context handle as its sharing context. 2012-05-05 18:33:20 +01:00
jules
bd0741f9a9 Added method OpenGLContext::deactivateCurrentContext(). 2012-05-04 11:23:57 +01:00
jules
7d9e06d788 Added OpenGL locking for OSX. 2012-04-03 18:18:44 +01:00
jules
4e1a9f6526 better double comparisons for var. Fix for VS2005/VS2010 RTAS exporting. Minor GL cleanups and project updates. 2012-03-31 16:41:05 +01:00
jules
0f8cc04904 GL fixes, clean-ups, docs. 2012-03-30 15:28:26 +01:00
jules
91a41ddbd8 OpenGL refactoring (stage 1) 2012-03-27 17:22:54 +01:00
Renamed from modules/juce_opengl/native/juce_linux_OpenGLComponent.cpp (Browse further)