aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/je_window.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-12-14 14:55:42 +0800
committerchai <chaifix@163.com>2018-12-14 14:55:42 +0800
commit870fcdae66edc680cac55defb149e1434e865f37 (patch)
treebb0b45627b98ec4c782466b3bb57daf63c44e460 /src/libjin/graphics/je_window.h
parenteb8ca083c9be574acd27cf0de41d1f69146cad7a (diff)
*格式化代码
Diffstat (limited to 'src/libjin/graphics/je_window.h')
-rw-r--r--src/libjin/graphics/je_window.h56
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