MCPcopy Create free account
hub / github.com/Nadrin/Quartz / main

Function main

examples/raytrace-cpp/main.cpp:90–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90int main(int argc, char **argv)
91{
92 QGuiApplication app(argc, argv);
93
94 QVulkanInstance vulkanInstance;
95 vulkanInstance.setApiVersion(QVersionNumber(1, 1));
96 if(!vulkanInstance.create()) {
97 qFatal("Failed to create Vulkan instance: %x", vulkanInstance.errorCode());
98 }
99
100 Qt3DRaytraceExtras::Qt3DWindow window;
101 window.setVulkanInstance(&vulkanInstance);
102 window.setWidth(1024);
103 window.setHeight(1024);
104
105 Qt3DCore::QEntity *scene = createScene();
106 window.setRootEntity(scene);
107 window.show();
108
109 return app.exec();
110}

Callers

nothing calls this directly

Calls 3

createSceneFunction · 0.85
setRootEntityMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected