Modules/Sketch3D/applications/Entry.cpp
2024-11-24 22:41:15 +03:00

28 lines
No EOL
442 B
C++

#include "WidgetApplication.hpp"
#include "Sketch3D.hpp"
#include "SketchGUI.hpp"
using namespace tp;
class Sketch3DApplication : public WidgetApplication {
public:
Sketch3DApplication() {
setRoot(&mGui);
mGui.createRenderWidget(mGraphics->getCanvas(), { 1920, 1080 });
mGui.setProject(&mSketch);
}
private:
SketchGUI mGui;
Project mSketch;
};
void runApp() {
Sketch3DApplication app;
app.run();
}
int main() { runApp(); }