summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/Graphics/RenderTarget.h
blob: ab09e35cd4170eb3b44c0c77c92521eee2add0aa (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
#ifndef _ASURA_ENGINE_RENDERTARGET_H_
#define _ASURA_ENGINE_RENDERTARGET_H_

#include <asura-base/Math/Vector2.hpp>
#include <asura-base/Math/Rect.hpp>
#include <asura-base/Scripting/Scripting.h>

#include "Texture.h"
#include "Color.h"

namespace_begin(AsuraEngine)
namespace_begin(Graphics)

///
/// ɱΪȾĿ࣬
///     Canvas(RenderTexture) 
///     Window(RenderWindow)
///
class RenderTarget : public AEScripting::Object
{
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;

};

namespace_end
namespace_end

#endif