mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-31 22:02:58 -06:00
reorganizing repo
git-svn-id: svn://ultimatepp.org/upp/trunk@9206 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7d17505cfe
commit
e3e8d627f5
3840 changed files with 0 additions and 1161578 deletions
|
|
@ -1,53 +0,0 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
#include <GLCtrl/GLCtrl.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
class GLTest : public GLCtrl
|
||||
{
|
||||
virtual void GLPaint()
|
||||
{
|
||||
glClearColor(1.0, 1.0, 0.0, 1.0);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
}
|
||||
};
|
||||
|
||||
class GLControlTest : public TopWindow
|
||||
{
|
||||
typedef GLControlTest CLASSNAME;
|
||||
|
||||
private:
|
||||
Splitter _splitter;
|
||||
GLTest _glTest;
|
||||
ImageCtrl _imgCtrl;
|
||||
MenuBar _menuBar;
|
||||
|
||||
void Test()
|
||||
{
|
||||
}
|
||||
|
||||
void MainMenu(Bar &bar)
|
||||
{
|
||||
bar.Add("Test", THISBACK(Test));
|
||||
}
|
||||
|
||||
public:
|
||||
GLControlTest()
|
||||
{
|
||||
SetRect(0, 0, 500, 400);
|
||||
AddFrame(_menuBar);
|
||||
_menuBar.Set(THISBACK(MainMenu));
|
||||
|
||||
_imgCtrl.AddFrame(InsetFrame());
|
||||
_glTest.AddFrame(InsetFrame());
|
||||
|
||||
_splitter.Horz(_imgCtrl, _glTest);
|
||||
*this << _splitter;
|
||||
}
|
||||
};
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
GLControlTest().Run();
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue