Enabled viewports.
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user