Transparent OpenGL Component


#1

I created a class for "transparent" OpenGL components.

Probably more folks would want something like this - so here it is:

https://gist.github.com/yairchu/50f8d2deb5a5cc9ef764

It has some limitations - doesn't check if the background changed etc.

Questions and review comments most welcome :)

Cheers, Yair


Draw OpenGLComponent *over* non-OpenGL component
#2

Thanks very much for posting this!

Not sure what we’re doing incorrectly, but about half of the time, the color for our openGL rendering is altered in some seemingly random way, though the background always appears to be drawn correctly.

Commenting out backgroundTexture.bind(); fixes the openGL drawing (though obviously, the background is no longer visible).

Does this work consistently for you with multiple components?


openGLRenderer & 2D drawing
#3

Haven’t tried using several of these, in my product (SurferEQ2) there’s only one such component being used.