From 38fa67c7e19486bf300636b0af9d7a67ef41559e Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Fri, 13 May 2022 16:35:44 +0200 Subject: [PATCH] Add overload operator on Text class Signed-off-by: Bensuperpc --- include/Text.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/Text.hpp b/include/Text.hpp index e925c88..f8beed6 100644 --- a/include/Text.hpp +++ b/include/Text.hpp @@ -79,6 +79,10 @@ class Text { int GetPosY() const { return _posY; } void SetPosY(int posY) { _posY = posY; } + Text& operator=(const Text& text) { + return *this; + } + /** * Draw text using font and color * @@ -125,4 +129,4 @@ class Text { }; } // namespace raylib -#endif // RAYLIB_CPP_INCLUDE_WINDOW_HPP_ +#endif // RAYLIB_CPP_INCLUDE_TEXT_HPP_