I'm making a wave editor. The waveform is drawn in GL and is super fast and lovely...but drawing the labels on top...oofff. I've been trying with
ScopedPointer<LowLevelGraphicsContext> glRenderer(createOpenGLGraphicsContext( context, getTopLevelComponent()->getWidth(), getTopLevelComponent()->getHeight())); Graphics g(*glRenderer); g.drawText(...);
But calling createOpenGLGraphicsContext every frame at 60Hz is slow. The killer is this: glGetIntegerv (GL_FRAMEBUFFER_BINDING, &fb);
Also I've tried drawing Label components with setBufferedToImage(true) using the normal method: too slow.
Any suggestions? Should I try GlyphArrangements?