Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.02 KB | None | 0 0
  1.  
  2. #pragma once
  3.  
  4. #include <GL/glfw3.h>
  5.  
  6. #include <joemath/joemath.hpp>
  7.  
  8. namespace NWasp
  9. {
  10.     class CWindow
  11.     {
  12.     private:
  13.                             CWindow         ( );
  14.                             ~CWindow        ( );
  15.                             CWindow         ( const CWindow& )              = delete;
  16.                 CWindow&    operator =      ( const CWindow& )              = delete;
  17.  
  18.         static CWindow* s_instance;
  19.     public:
  20.         static  bool        Create          ( );
  21.         static  CWindow*    Instance        ( );
  22.         static  void        Destroy         ( );
  23.  
  24.                 bool        Init            ( );
  25.                 bool        IsWindowClosed  ( )                     const;
  26.                 void        Swap            ( );
  27.                 void        SetTitle        ( const char* title )   const;
  28.  
  29.         const   GLFWwindow  GetWindow       ( )                     const;
  30.  
  31.     private:
  32.         s32 m_width;
  33.         s32 m_height;
  34.  
  35.         GLFWwindow m_window;
  36.     };
  37. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement