summaryrefslogtreecommitdiff
path: root/Source/Asura.Editor/Graphics/Drawer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Asura.Editor/Graphics/Drawer.h')
-rw-r--r--Source/Asura.Editor/Graphics/Drawer.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/Source/Asura.Editor/Graphics/Drawer.h b/Source/Asura.Editor/Graphics/Drawer.h
new file mode 100644
index 0000000..4adfa3f
--- /dev/null
+++ b/Source/Asura.Editor/Graphics/Drawer.h
@@ -0,0 +1,40 @@
+#ifndef _ASURA_EDITOR_PAINTER_H_
+#define _ASURA_EDITOR_PAINTER_H_
+
+#include <asura-base/Scripting/Scripting.h>
+#include <asura-base/Singleton.hpp>
+#include <asura-core/Graphics/Image.h>
+
+namespace AsuraEditor
+{
+ namespace Graphics
+ {
+
+ ///
+ /// AsuraEngineȾֵĻ滭࣬ڻƿؼ֮֡Բֱ沿ֵȾ
+ /// ΪȾframeworkʵ֣и߼ij󣬶ؼȾҪӵpass
+ /// ༭£Ⱦͱ༭ȾԻࡣ
+ ///
+ class Drawer
+ : public AsuraEngine::Singleton<Drawer>
+ , public AEScripting::Portable<Drawer>
+ {
+ public:
+
+ void DrawLine(int x1, int y1, int x2, int y2);
+ void DrawImage(AEGraphics::Image* img, int x, int y, float sx, float sy, float r, int ox, int oy);
+ void DrawTexts();
+ void DrawCircle(int x, int y, float d);
+ void DrawPoint(int x, int y);
+ void DrawPolyline();
+
+ private:
+
+ LUAX_DECL_SINGLETON(Drawer);
+
+ };
+
+ }
+}
+
+#endif \ No newline at end of file