reuk
c5c9f080d3
OpenGL: Ensure context is initially drawn with correct scale on macOS
2021-12-03 10:15:51 +00:00
reuk
ea8b0a2d32
OpenGL: Ensure that GL views display at the correct scale on macOS 12
...
Previously, we were using the window's top-left position to determine
the scale to use for the OpenGLContext. However, on macOS the
backingScaleFactor of the window is not strictly related to the top-left
corner of the window, so the OpenGL view's scale could end up differing
from the backing scale factor when slowly moving a window between
displays with different backing scale factors.
On macOS, we now use the backing scale factor of the window's screen (as
maintained by AppKit), rather than trying to work out the correct
display and scale ourselves.
2021-12-01 15:44:07 +00:00
reuk
e97f7d1c6c
OpenGLContext: Use high-priority thread for OpenGL renderer to smooth animations on M1 machines
2021-11-24 16:20:37 +00:00
reuk
6d3504adfa
OpenGLContext: Fix thread/consistency warnings on macOS
...
Previously, Xcode's main thread checker would complain when selecting
the "OpenGL Renderer" in the DemoRunner on macOS.
2021-10-25 09:51:20 +01:00
reuk
f0d11f961b
OpenGLContext: Avoid reading from component on background thread
2021-09-22 10:23:05 +01:00
attila
5c933d4c4e
macOS OpenGL: Use display refresh rate when rate limiting swapBuffers()
2021-09-10 17:47:00 +02:00
ed
f0002845d5
OpenGL: Correctly reset repaintEvent
2021-09-08 11:22:18 +01:00
reuk
90ad1877af
OpenGL: Only use vertex arrays if the GL version is greater or equal to 3
2021-07-14 14:49:15 +01:00
reuk
d64c4277b4
OpenGL: Reinstate ifdef which was removed accidentally
2021-07-14 14:47:56 +01:00
reuk
280d97eb79
OpenGL: Check at runtime whether non-power-of-two textures are supported
2021-07-05 12:21:36 +01:00
ed
dc61bd63e7
macOS: Manually reset repaint WaitableEvent when using CVDisplayLink
2021-06-15 10:15:02 +01:00
reuk
54423f6583
OpenGL: Add GLEW-inspired dynamic function loading
2021-05-26 11:23:49 +01:00
ed
b7e28541ca
Replaced deprecated Displays methods
2020-10-27 12:38:59 +00:00
ed
009d685179
Updated all license headers
2020-06-29 08:30:22 +01:00
ed
05602341fc
OpenGL: Take global scale factor into account when setting rendering scale on Windows
2020-05-29 16:55:56 +01:00
ed
281ae0b067
macOS: Render OpenGL frames on ThreadPoolJob instead of directly on the CVDisplayLink thread to avoid a deadlock
2020-05-20 11:45:44 +01:00
ed
270237be9b
macOS: Disable CVDisplayLink driver when continuous repainting is false
2020-05-12 16:46:06 +01:00
Tom Poole
894e7d2bd2
Updated all license headers
2020-04-23 17:30:39 +01:00
reuk
327f817b9b
Copyrights: Update commercial/gpl headers to be gpl-only
2020-04-09 15:22:56 +01:00
ed
d77dae186d
Windows: Fixed an OpenGL scale issue in high-DPI plug-ins
2020-03-17 16:22:19 +00:00
ed
99a17ad3a9
Windows: Fixed an issue with OpenGL rendering scale in plug-ins
2020-03-03 18:37:35 +00:00
ed
18523101be
Windows: Refactored DPI handling in the VST wrapper and hosting code
2020-03-02 15:41:08 +00:00
ed
b2d8f45e14
Fixed a potential data race in OpenGLContext::CachedImage
2020-01-14 18:16:32 +00:00
Tom Poole
26027ca9c3
macOS: Use CVDisplayLink to drive OpenGL
2019-12-31 13:30:11 +00:00
ed
558ca3e5e6
OpenGL: Update native context window position when viewport size or scale changes in OpenGLContext::CachedImage::updateViewportSize()
2019-10-15 14:06:12 +01:00
ed
6dda52b98b
OpenGL: Check frame buffer completeness in OpenGLContext::copyTexture() to avoid an GL_INVALID_FRAMEBUFFER_OPERATION error
2019-07-15 16:56:22 +01:00
Tom Poole
670f77f80c
Fixed some Android compiler warnings
2019-06-06 16:50:12 +01:00
Tom Poole
16dd26649a
Fixed some GCC compiler warnings and removed deprecated functions
2019-06-04 16:48:44 +01:00
Tom Poole
cbdf5e6d21
Fixed some compiler warnings
2019-03-08 18:01:17 +00:00
ed
853ec552f1
OpenGL: Use width and height when calculating transform
2019-01-23 10:59:51 +00:00
ed
eaf0f990d4
Replaced all uses of static_cast<Type&&> with std::move
2018-11-28 17:29:20 +00:00
hogliux
008b7a9ab2
Re-structured the low-level Android native code
...
Please see the forum post "Re-structuring of JUCE’s low-level Android code" and the BREAKING-CHANGES.txt for more information.
2018-11-13 12:33:40 +00:00
ed
97c100b9c1
Windows: Added a workaround for non-DPI aware windows having an incorrect scale factor when using the OpenGL renderer
2018-10-15 15:54:29 +01:00
jules
359132ed55
More zero -> nullptr fixes
2018-10-09 11:42:55 +01:00
ed
b78e63aa02
Moved Displays class out of Desktop and into its own .h/.cpp and deprecated Displays::getDisplayContaining()
2018-08-10 16:37:52 +01:00
jules
95a3f0b039
Whitespace
2018-07-03 11:51:36 +01:00
jules
1e6bbb8da9
Added some methods to allow ReferenceCountedObjectPtrs to be constructed or copied from references as well as pointers - as well as increasing safety, this actually makes things a bit more efficient as it skips a nullptr check. Updated lots of places in the code that could take advantage of this
2018-07-03 11:51:13 +01:00
jules
49aa9c9db4
Added flag JUCE_STRICT_REFCOUNTEDPOINTER which is recommended to avoid accidental leaks when using ref-counted pointers. Enabled this flag in the demo projects, and used it to help tidy up some dubious smart-pointer use
2018-06-26 14:06:52 +01:00
hogliux
e91def7fae
OpenGL: Fixed an issue where components using OpenGL would not be restarted correctly when used in the FX docker window in Reaper
2018-05-15 12:03:20 +01:00
Tom Poole
ab863a6dc2
Replaced all usage of ScopedPointer with std::unique_ptr
2018-04-19 20:27:47 +01:00
ed
c715b069b5
OpenGL: Revert commits 515f484 and 0a15be7 and calculate scale factor using relative bounds instead
2018-01-22 14:46:02 +00:00
ed
0a15be729e
OpenGL: Apply Component's transform when invalidating
2018-01-11 16:57:27 +00:00
jules
1a60fa9765
More ScopedPointer/unique_ptr compatibility work
2018-01-10 17:35:08 +00:00
ed
515f4846a5
OpenGL: Take a Component's transform into account when painting
2018-01-09 15:43:14 +00:00
ed
6894e04356
Android: Fixed an OpenGL crash that would occur due to failing to get a pointer to the native window
2017-11-30 10:11:40 +00:00
jules
25fe3ee392
Some workarounds to avoid triggering the new Xcode thread checker when using openGL
2017-11-29 10:14:41 +00:00
jules
f85d706131
Some minor formatting and comment fixes
2017-11-28 17:46:15 +00:00
jules
2dc9316420
Misc ScopedPointer changes to start using reset() and get() rather than assignments and casts (part of an ongoing drift towards more std::unique_ptr compatibility)
2017-11-01 17:41:06 +00:00
hogliux
159ffb5fb9
OpenGL: Added method OpenGLContext::setTextureMagnificationFilter to change GL's texture magnification filter
2017-10-24 09:13:19 +01:00
hogliux
b9b34393d1
Improved scheduling when multiple threads are fighting for the MessageManagerLock
2017-10-19 12:55:37 +01:00