Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <GL/glfw3.h>
- #include <joemath/joemath.hpp>
- namespace NWasp
- {
- class CWindow
- {
- private:
- CWindow ( );
- ~CWindow ( );
- CWindow ( const CWindow& ) = delete;
- CWindow& operator = ( const CWindow& ) = delete;
- static CWindow* s_instance;
- public:
- static bool Create ( );
- static CWindow* Instance ( );
- static void Destroy ( );
- bool Init ( );
- bool IsWindowClosed ( ) const;
- void Swap ( );
- void SetTitle ( const char* title ) const;
- const GLFWwindow GetWindow ( ) const;
- private:
- s32 m_width;
- s32 m_height;
- GLFWwindow m_window;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement