diff options
Diffstat (limited to 'source/Asura.Editor/graphics/drawer.h')
-rw-r--r-- | source/Asura.Editor/graphics/drawer.h | 39 |
1 files changed, 39 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..a61a7f2 --- /dev/null +++ b/source/Asura.Editor/graphics/drawer.h @@ -0,0 +1,39 @@ +#ifndef __ASURA_EDITOR_PAINTER_H__ +#define __ASURA_EDITOR_PAINTER_H__ + +#include <asura-utils/scripting/portable.hpp> +#include <asura-utils/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); + + private: + + LUAX_DECL_SINGLETON(Drawer); + + }; + + } +} + +#endif
\ No newline at end of file |