mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
experimenting
This commit is contained in:
parent
a6e8924cf0
commit
cc4d04aaef
1 changed files with 10 additions and 8 deletions
|
@ -109,14 +109,6 @@ TestWindow::TestWindow() {
|
||||||
Setting::init();
|
Setting::init();
|
||||||
|
|
||||||
setSurfaceType(QSurface::OpenGLSurface);
|
setSurfaceType(QSurface::OpenGLSurface);
|
||||||
QSurfaceFormat format;
|
|
||||||
format.setDepthBufferSize(24);
|
|
||||||
format.setStencilBufferSize(8);
|
|
||||||
format.setVersion(4, 5);
|
|
||||||
format.setProfile(QSurfaceFormat::OpenGLContextProfile::CoreProfile);
|
|
||||||
format.setOption(QSurfaceFormat::DebugContext);
|
|
||||||
QSurfaceFormat::setDefaultFormat(format);
|
|
||||||
setFormat(format);
|
|
||||||
|
|
||||||
qmlRegisterType<QTestItem>("Hifi", 1, 0, "TestItem");
|
qmlRegisterType<QTestItem>("Hifi", 1, 0, "TestItem");
|
||||||
|
|
||||||
|
@ -301,6 +293,16 @@ void TestWindow::resizeEvent(QResizeEvent* ev) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
|
|
||||||
|
QSurfaceFormat format;
|
||||||
|
format.setDepthBufferSize(24);
|
||||||
|
format.setStencilBufferSize(8);
|
||||||
|
format.setVersion(4, 1);
|
||||||
|
format.setProfile(QSurfaceFormat::OpenGLContextProfile::CoreProfile);
|
||||||
|
format.setOption(QSurfaceFormat::DebugContext);
|
||||||
|
QSurfaceFormat::setDefaultFormat(format);
|
||||||
|
// setFormat(format);
|
||||||
|
|
||||||
QGuiApplication app(argc, argv);
|
QGuiApplication app(argc, argv);
|
||||||
TestWindow window;
|
TestWindow window;
|
||||||
return app.exec();
|
return app.exec();
|
||||||
|
|
Loading…
Reference in a new issue