diff options
Diffstat (limited to 'src/libjin/graphics/je_window.h')
-rw-r--r-- | src/libjin/graphics/je_window.h | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/libjin/graphics/je_window.h b/src/libjin/graphics/je_window.h index 6e23445..902e873 100644 --- a/src/libjin/graphics/je_window.h +++ b/src/libjin/graphics/je_window.h @@ -11,29 +11,29 @@ namespace JinEngine { - namespace Graphics - { + namespace Graphics + { /// /// /// - class Window + class Window : public Subsystem<Window> - { - public: + { + public: /// /// /// - struct Setting : SettingBase - { - public: - const char* title; ///< window title + struct Setting : SettingBase + { + public: + const char* title; ///< window title const char* icon; ///< window icon - bool fullscreen; ///< full screen - int width, height; ///< window size - bool vsync; ///< vsync - int fps; ///< frame per second - bool resizable; ///< resizable - }; + bool fullscreen; ///< full screen + int width, height; ///< window size + bool vsync; ///< vsync + int fps; ///< frame per second + bool resizable; ///< resizable + }; /// /// @@ -48,27 +48,27 @@ namespace JinEngine /// /// /// - void setTitle(const char* title); + void setTitle(const char* title); /// /// /// - inline int getW(){ return mSize.w; } + inline int getW(){ return mSize.w; } /// /// /// - inline int getH(){ return mSize.h; } + inline int getH(){ return mSize.h; } /// /// /// - inline int getFPS(){ return mFps; } + inline int getFPS(){ return mFps; } /// /// /// - void swapBuffers(); + void swapBuffers(); /// /// @@ -80,25 +80,25 @@ namespace JinEngine /// void show() { SDL_ShowWindow(mWnd); }; - private: + private: /// /// /// - bool startSystem(const SettingBase* setting) override; + bool startSystem(const SettingBase* setting) override; /// /// /// - void quitSystem() override; + void quitSystem() override; - SDL_Window* mWnd; - JinEngine::Math::Vector2<unsigned int> mSize; - int mFps; + SDL_Window* mWnd; + JinEngine::Math::Vector2<unsigned int> mSize; + int mFps; - }; + }; - } // namespace Graphics + } // namespace Graphics } // namespace JinEngine #endif // jin_graphics |