diff options
author | chai <chaifix@163.com> | 2018-10-23 12:23:58 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-23 12:23:58 +0800 |
commit | 40fc27154fe754181934dc7ee31375e6bdfb33fc (patch) | |
tree | 897ad98d759bc308ef66561181ba88b85f2ccd47 /src/libjin/Graphics/Window.h | |
parent | 1480c9445100075c9e1a894eb07c0ef727b509a1 (diff) |
*merge from minimal
Diffstat (limited to 'src/libjin/Graphics/Window.h')
-rw-r--r-- | src/libjin/Graphics/Window.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/libjin/Graphics/Window.h b/src/libjin/Graphics/Window.h deleted file mode 100644 index e09e9f9..0000000 --- a/src/libjin/Graphics/Window.h +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef __JIN_RENDER_WINDOW -#define __JIN_RENDER_WINDOW -#include "../modules.h" -#if JIN_MODULES_RENDER - -#include "SDL2/SDL.h" -#include "../utils/utils.h" -#include "../common/Subsystem.hpp" - -namespace jin -{ -namespace graphics -{ - - class Window : public Subsystem<Window> - { - public: - - struct Setting : SettingBase - { - public: - const char* title; // - bool fullscreen; // ȫ - int width, height; // ڴС - bool vsync; // ֱͬ - int fps; // FPS - bool resizable; // resize - }; - - inline int getW(){ return width; } - inline int getH(){ return height; } - inline int getFPS(){ return fps; } - inline void swapBuffers(); - - private: - - Window() {}; - virtual ~Window() {}; - - SINGLETON(Window); - - SDL_Window* wnd; - - int width, height; - int fps; - - onlyonce bool initSystem(const SettingBase* setting) override; - onlyonce void quitSystem() override; - }; - -} // render -} // jin - -#endif // JIN_MODULES_RENDER -#endif // __JIN_RENDER_WINDOW
\ No newline at end of file |