removing GLFW support

This commit is contained in:
2024-05-25 16:47:28 +02:00
parent afee09d1ea
commit 81387ec53d
17 changed files with 153 additions and 260 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: 2024/03/27 21:58:18 by maldavid ### ########.fr */
/* Updated: 2024/05/25 16:11:00 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
@@ -15,18 +15,12 @@
namespace mlx
{
#ifdef LEGACY
using WindowHandle = SDL_Window;
#else
using WindowHandle = GLFWwindow;
#endif
class Window
{
public:
Window(std::size_t w, std::size_t h, const std::string& title);
inline NonOwningPtr<WindowHandle> GetWindowHandle() const noexcept = 0;
inline void* GetWindowHandle() const noexcept { return p_window; }
inline int GetWidth() const noexcept { return m_width; }
inline int GetHeight() const noexcept { return m_height; }
inline std::uint32_t GetID() const noexcept { return m_id; }
@@ -36,6 +30,7 @@ namespace mlx
~Window() = default;
private:
void* p_window = nullptr;
std::uint32_t m_id = -1;
int m_width = 0;
int m_height = 0;