From 870fcdae66edc680cac55defb149e1434e865f37 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 14 Dec 2018 14:55:42 +0800 Subject: =?UTF-8?q?*=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/graphics/je_window.h | 56 ++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'src/libjin/graphics/je_window.h') 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 - { - 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 mSize; - int mFps; + SDL_Window* mWnd; + JinEngine::Math::Vector2 mSize; + int mFps; - }; + }; - } // namespace Graphics + } // namespace Graphics } // namespace JinEngine #endif // jin_graphics -- cgit v1.1-26-g67d0