Hello World! (First post, first usage of JUCE)
Just having my first stab at writing a JUCE application. What I’m trying to do is, for a very simple OpenGL renderer prototype, to attach the context directly to MainWindow (which is a Component after all), by doing:
mainWindow = new MainWindow(getApplicationName());
glContext = new OpenGLContext();
The MainWindow is setVisible(true), didn’t change anything in the generated code. AudioAnalysisRenderer::renderOpenGL is never called this way, does not change when setContinuousRepainting is set to true. Is this a problem with using the MainWindow as the component rendered to? In the end I would of course create a dedicated Component which contains the OpenGLRenderer anyways, just wondering wether this should not be working either way.
Aside, I suppose setPixelFormat is not mandatory and the default parameters will be used if not called? The docs state “This must be called BEFORE attaching your context to a target component!” which is a bit ambiguous, if the call is optional (which I assume) the docs could maybe be enhanced to state that there is actually a default. Setting the pixel format didn’t change the behaviour anyhow…
Having a first closer look at JUCE, after having heard only the best about it from a technical viewpoint, I must say that my first impression is really really good, keep up the good work Jules! In case I might find bugs or problems, what would be the preferred way of contributing?
Thanks and best regards,