working on window manager

This commit is contained in:
Kbz-8
2022-10-05 20:37:04 +02:00
parent 5df9b4d39f
commit f52c4e51c9
10 changed files with 83 additions and 24 deletions

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/04 21:53:12 by maldavid #+# #+# */
/* Updated: 2022/10/04 21:59:54 by maldavid ### ########.fr */
/* Updated: 2022/10/05 19:10:35 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
@@ -21,12 +21,15 @@ namespace mlx
class Window
{
public:
Window(std::size_t w, std::size_t h, std::string title);
Window(std::size_t w, std::size_t h, std::string title, int id);
inline int& get_id() noexcept { return _id; }
~Window();
private:
SDL_Window* _win = nullptr;
int _id;
};
}