summaryrefslogtreecommitdiff
path: root/source/Asura.Editor/graphics/drawer.h
blob: 85cc88a23f8f6a958c4e0b4e2488fb286c0128a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#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);
			void DrawPolyline();

		private: 

			LUAX_DECL_SINGLETON(Drawer);

		};

	}
}

#endif