MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1
2/**
3 * @file main.cpp
4 * @brief Starts the Qt model_viewer application.
5 */
6
7#include "model_view.hpp"
8#include <QApplication>
9#include <QFile>
10
11/**
12 * @brief Application entry point for the MXMOD model viewer launcher.
13 * @param argc Argument count forwarded to QApplication.
14 * @param argv Argument vector forwarded to QApplication.
15 * @return Qt application exit code.
16 */
17int main(int argc, char **argv) {
18 QApplication app(argc, argv);
19
20 app.setApplicationName("Professional Model Viewer");
21 app.setOrganizationName("MXModel");
22 app.setOrganizationDomain("mxmodel.io");
23 app.setApplicationVersion("1.0.0");
24
25 QFile styleFile(":/styles/data/stylesheet.qss");
26 if (styleFile.open(QFile::ReadOnly)) {
27 QString style = QLatin1String(styleFile.readAll());
28 app.setStyleSheet(style);
29 styleFile.close();
30 }
31
33 viewer.show();
34
35 return app.exec();
36}
Main application window for the MXMOD model viewer launcher.
int main(void)
Definition main.cpp:7
Declares the Qt front end used to launch the MXVK model viewer renderer.