summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/graphics/render_target.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/modules/asura-core/graphics/render_target.h')
-rw-r--r--source/modules/asura-core/graphics/render_target.h80
1 files changed, 39 insertions, 41 deletions
diff --git a/source/modules/asura-core/graphics/render_target.h b/source/modules/asura-core/graphics/render_target.h
index 1992f6c..a52e7b0 100644
--- a/source/modules/asura-core/graphics/render_target.h
+++ b/source/modules/asura-core/graphics/render_target.h
@@ -8,47 +8,45 @@
#include "texture.h"
#include "color.h"
-namespace AsuraEngine
+namespace_begin(AsuraEngine)
+namespace_begin(Graphics)
+
+///
+/// ɱΪȾĿ࣬
+/// Canvas(RenderTexture)
+/// Window(RenderWindow)
+///
+class RenderTarget : public AEScripting::Object
{
- namespace 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;
-
- };
-
- }
-}
+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 \ No newline at end of file