add app.set_title
This commit is contained in:
@@ -36,6 +36,7 @@ public:
|
||||
virtual void setMode(WindowMode mode) = 0;
|
||||
virtual WindowMode getMode() const = 0;
|
||||
|
||||
virtual void setTitle(const std::string& title) = 0;
|
||||
virtual void setIcon(const ImageData* image) = 0;
|
||||
|
||||
virtual void pushScissor(glm::vec4 area) = 0;
|
||||
|
||||
@@ -468,6 +468,10 @@ public:
|
||||
return mode;
|
||||
}
|
||||
|
||||
void setTitle(const std::string& title) override {
|
||||
glfwSetWindowTitle(window, title.c_str());
|
||||
}
|
||||
|
||||
void setIcon(const ImageData* image) override {
|
||||
if (image == nullptr) {
|
||||
glfwSetWindowIcon(window, 0, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user