diff options
Diffstat (limited to 'source/modules/asura-core/graphics/canvas.h')
-rw-r--r-- | source/modules/asura-core/graphics/canvas.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/source/modules/asura-core/graphics/canvas.h b/source/modules/asura-core/graphics/canvas.h index 6af81d7..555ce5d 100644 --- a/source/modules/asura-core/graphics/canvas.h +++ b/source/modules/asura-core/graphics/canvas.h @@ -20,9 +20,7 @@ namespace AsuraEngine /// CanvasҲԳΪrender textureҲΪtextureȾ /// class Canvas ASURA_FINAL - : public Drawable - , public RenderTarget - , public Scripting::Portable<Canvas> + : public Scripting::Portable<Canvas, RenderTarget> { public: @@ -33,12 +31,12 @@ namespace AsuraEngine /// /// render textureĴС /// - void SetSize(uint w, uint h) asura_throw(Exception); + void SetSize(uint w, uint h) ASURA_THROW(Exception); void Clear(const Color& col = Color::Black) override; - +/* void Clear(const Math::Recti& quad, const Color& col = Color::Black) override; - +*/ void Render(const RenderTarget* rt, const Math::Vector2i& pos, const Math::Vector2i& scale, const Math::Vector2i& center, float rot); void Render(const RenderTarget* rt, const Math::Rectf& quad, const Math::Vector2i& pos, const Math::Vector2i& scale, const Math::Vector2i& center, float rot); @@ -55,6 +53,11 @@ namespace AsuraEngine GLuint mFBO; /// + /// tex + /// + GLuint mTex; + + /// /// canvasĴС /// uint mWidth, mHeight; |