I am trying to put an Overlay over the openGL panel.
I have this in the init() method:
overlay = new Overlay(drawable);
graphics2d = overlay.createGraphics();
And I have this in the display() method:
overlay.drawAll();
graphics2d.setBackground(Color.yellow);
graphics2d.drawString("HELLO WORLD!", 10, 10);
Nothing but all the OpenGL stuff appears on the screen. “Hello world” is not beeing printed.
What am I doing wrong?