Transparent OpenGL Component


I created a class for "transparent" OpenGL components.

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

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

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

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