summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/Graphics/CanvasRenderer.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-01-19 01:44:05 +0800
committerchai <chaifix@163.com>2019-01-19 01:44:05 +0800
commit91e589d1678a8187c307e09b98b67ec4133092ff (patch)
treeee2761f047568ca7164b27399c0b2fb2f21c26b0 /Source/Asura.Engine/Graphics/CanvasRenderer.h
parent91346d709abb37a063d0c29ddeb2d1a849d3afc2 (diff)
*游戏框架改用脚本实现
Diffstat (limited to 'Source/Asura.Engine/Graphics/CanvasRenderer.h')
-rw-r--r--Source/Asura.Engine/Graphics/CanvasRenderer.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/Source/Asura.Engine/Graphics/CanvasRenderer.h b/Source/Asura.Engine/Graphics/CanvasRenderer.h
new file mode 100644
index 0000000..ef188a5
--- /dev/null
+++ b/Source/Asura.Engine/Graphics/CanvasRenderer.h
@@ -0,0 +1,30 @@
+#ifndef __AE_CANVAS_RENDERER_H__
+#define __AE_CANVAS_RENDERER_H__
+
+#include "Canvas.h"
+#include "Renderer.h"
+
+namespace AsuraEngine
+{
+ namespace Graphics
+ {
+
+ class CanvasRenderer : public Renderer
+ {
+ public:
+
+ void SetCanvas(Canvas* canvas);
+ Canvas* GetCanvas();
+
+ void SetBlendMode();
+
+ private:
+
+ Canvas * mCanvas;
+
+ };
+
+ }
+}
+
+#endif \ No newline at end of file