Skip to content

Commit

Permalink
Window::SetWindowTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
desatur committed Sep 2, 2024
1 parent 79f7ff4 commit 1aeb9f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Future/src/Window/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ namespace Future
}
}

void Window::SetWindowTitle(const std::string &title)
{
mTitle = title;
SDL_SetWindowTitle(sdlWindow, mTitle.c_str());
}

void Window::Tick()
{
if (mRunning)
Expand Down
1 change: 1 addition & 0 deletions Future/src/Window/Window.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace Future

void Tick();
void ToggleBindCursor();
void SetWindowTitle(const std::string& title);

private:
std::string mTitle;
Expand Down

0 comments on commit 1aeb9f8

Please sign in to comment.