I’ve created opengl contexts in each of the components but it appears that they are fighting each other and the strange thing is it’s tied to the mouse moving within the window
For my JUCE plugin, I want it’s entire UI to be rendered using OpenGL. To achieve this, I need to attach an OpenGLContext instance to some top level component in the UI.
Is it okay to attach the OpenGLContext to the PluginEditor? If my memory is correct, I read a forum post a while back where @fr810 said the OpenGLContext should not be attached to the PluginEditor as this causes glitches in some hosts, and instead, the OpenGLContext should be attached to a child Component of the PluginEditor wh…
Yes, the demo is a bit confusing in that sense. As you know there isn’t really an “Open GL interface renderer”. You can only attach a GL context to a JUCE component. That JUCE component and all of it’s children will then be rendered with OpenGL.
There are a few limitations to this. First of all, you can’t have any of the child components also be attached to a different OpenGLContext. This will result in problems with z-ordering and clipping.
Also, we know that some GPUs struggle to cope with …
Is it possible (for you) to use one openglContext instead of multiple contexts?