summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/Graphics/RenderTarget.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-01 08:50:34 +0800
committerchai <chaifix@163.com>2019-03-01 08:50:34 +0800
commit64d9d7b3eb7cece81da8b2cb56eb0f50d87a5964 (patch)
tree12bde99e5415f77f60f8873a66d09bfd3b84ec48 /Source/Asura.Engine/Graphics/RenderTarget.h
parente28a7d48d032fe7fd4c8789e95fbc659873a0adc (diff)
*misc
Diffstat (limited to 'Source/Asura.Engine/Graphics/RenderTarget.h')
-rw-r--r--Source/Asura.Engine/Graphics/RenderTarget.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/Source/Asura.Engine/Graphics/RenderTarget.h b/Source/Asura.Engine/Graphics/RenderTarget.h
index 05d7068..afa8967 100644
--- a/Source/Asura.Engine/Graphics/RenderTarget.h
+++ b/Source/Asura.Engine/Graphics/RenderTarget.h
@@ -1,20 +1,24 @@
#ifndef __ASURA_ENGINE_RENDERTARGET_H__
#define __ASURA_ENGINE_RENDERTARGET_H__
+#include "Math/Rect.hpp"
#include "Texture.h"
#include "Object.h"
+#include "Color.h"
namespace AsuraEngine
{
namespace Graphics
{
+ class Drawable;
+
///
/// ɱΪȾĿ࣬
/// Canvas(RenderTexture)
/// Window(RenderWindow)
///
- class RenderTarget : virtual public Object
+ class RenderTarget : virtual public Object
{
public:
@@ -22,6 +26,26 @@ namespace AsuraEngine
virtual ~RenderTarget() {};
+ ///
+ /// ɫcolRT
+ ///
+ virtual void Clear(const Color& col = Color::Black) = 0;
+
+ ///
+ /// ɫcolղRT
+ ///
+ virtual void Clear(const Math::Recti& quad, const Color& col = Color::Black) = 0;
+
+ ///
+ /// textureRT
+ ///
+ virtual void Draw(const Drawable* texture, const RenderState& state) = 0;
+
+ ///
+ /// һtextureRT
+ ///
+ virtual void Draw(const Drawable* texture, const Math::Recti& quad, const RenderState& state) = 0;
+
};
}