summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/Window/Window.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-04 08:59:21 +0800
committerchai <chaifix@163.com>2019-03-04 08:59:21 +0800
commitc19a282e10f51ddd50d198b903f8fbd5a2238b62 (patch)
tree407cfda6ec917a86135153915a924e38f76c0553 /Source/Asura.Engine/Window/Window.h
parente1472104af014df0e8598f1a3f9b2496b683d6bb (diff)
*misc
Diffstat (limited to 'Source/Asura.Engine/Window/Window.h')
-rw-r--r--Source/Asura.Engine/Window/Window.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/Source/Asura.Engine/Window/Window.h b/Source/Asura.Engine/Window/Window.h
index 3456d75..71aaf0e 100644
--- a/Source/Asura.Engine/Window/Window.h
+++ b/Source/Asura.Engine/Window/Window.h
@@ -12,21 +12,21 @@ namespace AsuraEngine
enum WindowStyle
{
-
+ WINDOW_STYLE_FULLSCREEN = 1 << 1,
};
///
/// ڣֶ֧രڡڱ༭Ҫ֧֣runnerֻҪһڡ
///
- class Window final : public RenderTarget
+ class Window : public RenderTarget
{
public:
- Window();
+ Window(WindowStyle style);
~Window();
- SDL_Window* GetSDLHandle();
+ SDL_Window* GetSDLWindowHandle();
void SetSize(uint width, uint height);
@@ -45,6 +45,14 @@ namespace AsuraEngine
///
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:
///