summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/graphics/render_target.h
blob: d6de1646f7b703121577a0db73040eeadb2a0a0b (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef __ASURA_ENGINE_RENDERTARGET_H__
#define __ASURA_ENGINE_RENDERTARGET_H__

#include "Math/Rect.hpp"
#include "Texture.h"
#include "Scripting/Portable.h"
#include "Color.h"

namespace AsuraEngine
{
	namespace Graphics
	{

		class Drawable;

		///
		/// ɱΪȾĿ࣬
		///     Canvas(RenderTexture) 
		///     Window(RenderWindow)
		///
		class RenderTarget
		{
		public:

			RenderTarget() {};

			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;

		};

	}
}

#endif