i’m struggling with OpenGL usage in JUCE.
I’ve managed to create a functional Component that is an OpenGLRenderer and has its own openGLContext, and draws into an image during it’s renderOpenGL call and then send it via Spout
But this component actually needs to be visible and showing, with a non-zero size, otherwise the renderOpenGL function is never called.
So basically, with this technique you can only use OpenGL on visible components ?
What’s strange is that when i set the renderer to this object and i attach the context to it as well, the object becomes invisible, but the mouse interaction seems to work since i can’t click on objects behind this one (edit: this behavior is true when i also set the mainWindow as an OpenGLRenderer and attach a context to it)
What i want to achieve is actually quite simple : i would like to be able to have a separate openGLContext and be able to draw some graphics in a texture without needing to show it on screen, just into a texture that i’ll send over Spout or Syphon later.
Do you have any clues for that ?