2014-08-19 13:49:08 +00:00
|
|
|
#include <QGuiApplication>
|
|
|
|
#include <QQuickView>
|
|
|
|
#include <QtQml>
|
|
|
|
|
|
|
|
#include "OpenGLView.h"
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QGuiApplication app(argc, argv);
|
|
|
|
|
|
|
|
qmlRegisterType<OpenGLView>("Paysages", 1, 0, "OpenGLView");
|
|
|
|
|
|
|
|
QQuickView view;
|
2014-08-27 13:18:08 +00:00
|
|
|
view.setTitle(QObject::tr("Paysages 3D"));
|
2014-08-19 13:49:08 +00:00
|
|
|
view.setResizeMode(QQuickView::SizeRootObjectToView);
|
|
|
|
view.setSource(QUrl("qrc:///main.qml"));
|
|
|
|
view.show();
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|