summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/Window
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Asura.Engine/Window')
-rw-r--r--Source/Asura.Engine/Window/Window.cpp54
-rw-r--r--Source/Asura.Engine/Window/Window.h74
2 files changed, 0 insertions, 128 deletions
diff --git a/Source/Asura.Engine/Window/Window.cpp b/Source/Asura.Engine/Window/Window.cpp
deleted file mode 100644
index 6e9300f..0000000
--- a/Source/Asura.Engine/Window/Window.cpp
+++ /dev/null
@@ -1,54 +0,0 @@
-#include "Window.h"
-
-namespace AsuraEngine
-{
- namespace Graphics
- {
-
- Window::Window(WindowStyle style)
- {
- //mWindowHandle = SDL_CreateWindow();
- }
-
- Window::~Window()
- {
-
- }
-
- SDL_Window* Window::GetSDLWindowHandle()
- {
- return mWindowHandle;
- }
-
- void Window::SetPosition(int x, int y)
- {
-
- }
-
- void Window::SetTitle(const std::string& title)
- {
-
- }
-
- void Window::Show()
- {
-
- }
-
- void Window::Hide()
- {
-
- }
-
- void Window::SetWindowStyle(WindowStyle style)
- {
-
- }
-
- void Window::SwapRenderBuffer()
- {
-
- }
-
- }
-}
diff --git a/Source/Asura.Engine/Window/Window.h b/Source/Asura.Engine/Window/Window.h
deleted file mode 100644
index 71aaf0e..0000000
--- a/Source/Asura.Engine/Window/Window.h
+++ /dev/null
@@ -1,74 +0,0 @@
-#ifndef __ASURA_ENGINE_WINDOW_H__
-#define __ASURA_ENGINE_WINDOW_H__
-
-#include "SDL2/Sdl.h"
-#include "Graphics/RenderTarget.h"
-#include "Math/Vector2.hpp"
-
-namespace AsuraEngine
-{
- namespace Graphics
- {
-
- enum WindowStyle
- {
- WINDOW_STYLE_FULLSCREEN = 1 << 1,
- };
-
- ///
- /// ڣֶ֧രڡڱ༭Ҫ֧֣runnerֻҪһڡ
- ///
- class Window : public RenderTarget
- {
- public:
-
- Window(WindowStyle style);
-
- ~Window();
-
- SDL_Window* GetSDLWindowHandle();
-
- void SetSize(uint width, uint height);
-
- void SetPosition(int x, int y);
-
- void SetTitle(const std::string& title);
-
- void SetWindowStyle(WindowStyle style);
-
- void Show();
-
- void Hide();
-
- ///
- /// ǿ˫ĴڣҪչʾǰ̨
- ///
- void SwapRenderBuffer();
-
- void Clear(const Color& col = Color::Black);
-
- void Clear(const Math::Recti& quad, const Color& col = Color::Black);
-
- void Draw(const Drawable* texture, const RenderState& state);
-
- void Draw(const Drawable* texture, const Math::Recti& quad, const RenderState& state);
-
- private:
-
- ///
- /// SDL window handle.
- ///
- SDL_Window* mWindowHandle;
-
- Math::Vector2i mPosition;
-
- Math::Vector2i mSize;
-
- };
-
- using RenderWindow = Window;
-
- }
-}
-
-#endif \ No newline at end of file