paysages3d/src/interface/modeler/quickapp/MainModelerWindow.cpp

25 lines
537 B
C++
Raw Normal View History

2014-08-28 08:29:12 +00:00
#include "MainModelerWindow.h"
#include "OpenGLView.h"
#include "Scenery.h"
#include "OpenGLRenderer.h"
MainModelerWindow::MainModelerWindow()
{
scenery = new Scenery();
scenery->autoPreset();
renderer = new OpenGLRenderer(scenery);
qmlRegisterType<OpenGLView>("Paysages", 1, 0, "OpenGLView");
setTitle(QObject::tr("Paysages 3D"));
setResizeMode(QQuickView::SizeRootObjectToView);
setSource(QUrl("qrc:///main.qml"));
}
MainModelerWindow::~MainModelerWindow()
{
delete renderer;
delete scenery;
}