Enabled viewports.

This commit is contained in:
2025-03-02 23:08:02 +01:00
parent 7eabd55167
commit 53efca4729
4 changed files with 36 additions and 5 deletions

View File

@@ -67,6 +67,8 @@ public:
protected:
virtual void render() = 0;
virtual std::string getFolderName() = 0;
virtual std::string getWindowTitle() = 0;
virtual void configureImgui();
virtual void handleMessage(const Message& message);
virtual void handleSDLEvent(const SDL_Event& event);
@@ -139,6 +141,7 @@ struct QuickAppOptions
render_cb_t render;
} callbacks;
std::string folderName = "raid";
std::string windowTitle = "RAID";
ImGuiWindowFlags mainWindowFlags = DEFAULT_MAIN_WINDOW_FLAGS;
};
@@ -147,10 +150,12 @@ class QuickApp : public Application
private:
render_cb_t mRenderCallback;
std::string mFolderName;
std::string mWindowTitle;
public:
void init(QuickAppOptions options);
void render() override;
std::string getFolderName() override;
std::string getWindowTitle() override;
static QuickApp& get();
};