Hi Jucers! I’m looking for a nice-looking and adjustable GUI for a OpenGL-based demo application. I tried out GLUI (I shared a screenshot on our website: http://www.3dforall.hu/screen01.JPG ), and now I’m trying to use JUCE for this purpose. What I want is not more than a “pop-up” panel on the right side of the screen, over the OpenGLComponent (like in existing GLUI-demo). In this demo, the panel appears when I move the cursor to the right border of screen.
But the similar demo in JUCE have a problem: I can’t draw component over OpenGL canvas.
For example, if I expand OpenGLDemo.cpp…
Index: OpenGLDemo.cpp
— OpenGLDemo.cpp (revision 776)
+++ OpenGLDemo.cpp (working copy)
@@ -251,6 +251,7 @@
{
//==============================================================================
DemoOpenGLCanvas* canvas;
public:
//==============================================================================
@@ -259,7 +260,12 @@
setName (T(“OpenGL”));
canvas = new DemoOpenGLCanvas();
-
addAndMakeVisible(canvas);
-
tabbed = new TabbedComponent(TabbedButtonBar::TabsAtTop);
-
addAndMakeVisible(tabbed);
-
tabbed->setTabBarDepth(30);
-
tabbed->addTab (T("Tab 0"), Colours::lightgrey, 0, false);
-
tabbed->setCurrentTabIndex(0);
}
~OpenGLDemo()
@@ -269,7 +275,8 @@
void resized()
{
-
canvas->setBounds(10, 50, getWidth() - 20, getHeight() - 50);
-
tabbed->setBounds(20, 10, 200, 150);
}
};
…the result is: http://www.3dforall.hu/screen02.JPG
But the main menu appears correctly ( http://www.3dforall.hu/screen03.JPG )
How can I draw my TabbedComponent in over the canvas?