aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/Window.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/Graphics/Window.h')
-rw-r--r--src/libjin/Graphics/Window.h55
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