2D plug-in using OpenGL?

This entire forum has always been in some form of peril wrt OpenGL… This topic is a consistent source of terrible confusion and misinformation.

Plainly put:

  • JUCE doesn’t follow OpenGL pipelining very well.
  • Your driver always reports the latest version of OpenGL. The version reported has nothing to do with the instantiation of the context on Windows.
  • To get all of the features you need, we shouldn’t be fucking around with macros in the framework - let alone cryptic ones that conflict logistically with the APIs provided. Instead, we should be wrangling the functions and loading any and all of that, even lazily - as is the way of GL. But alas, we aren’t… (See FR: Wrangle a comprehensive set of OpenGL functions & macros )
  • Various plugins do use JUCE’s GL. The performance gains are minimal at best, or cause cross platform issues at worst. You’re better off writing a simple renderer using the GL pipeline to be able to get everything out of it.
5 Likes