Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graph/tools/materialeditor/src/main.cpp
Joshua Goins 09c560f26d Disable editor style
This was never completed, and the theme is completely unusable
in it's current state
2022-02-28 22:31:20 -05:00

35 lines
790 B
C++
Executable file

#include <QApplication>
#include <QVulkanInstance>
#include "mainwindow.h"
#include "platform.h"
#include "context.h"
#include "renderer.h"
#include "worldmanager.h"
#include "assetmanager.h"
#include "ecs.h"
#include "editorstyle.h"
int main(int argc, char* argv[]) {
QApplication app(argc, argv);
//app.setStyle(new EditorStyle());
GraphicsConfig config;
config.shadowResolution = 256;
config.dofDownscale = 2;
config.filterPCF = true;
config.enableImgui = false;
Context context;
context.renderer = new Renderer(config);
assetManager.setRenderer(context.renderer);
worldManager.loadWorld("matpreview.world");
worldManager.switchWorld("matpreview.world");
MainWindow window(context);
window.show();
return app.exec();
}