From 160e1299ef3d95f8e8c48706d7f61dd3dc6c6b60 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 11 Feb 2020 11:29:07 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=20tab=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/graphics/renderable.h | 66 ++++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'src/libjin/graphics/renderable.h') diff --git a/src/libjin/graphics/renderable.h b/src/libjin/graphics/renderable.h index ca9888e..8d8772c 100644 --- a/src/libjin/graphics/renderable.h +++ b/src/libjin/graphics/renderable.h @@ -3,39 +3,39 @@ namespace JinEngine { - namespace Graphics - { - - namespace Shaders { class Shader; }; - - enum class Origin - { - TOPLEFT, - TOPCENTER, - TOPRIGHT, - MIDDLELEFT, - MIDDLECENTER, - MIDDLERIGHT, - BOTTOMLEFT, - BOTTOMCENTER, - BOTTOMRIGHT - }; - - class Renderable - { - public: - //void setShader(const Shaders::Shader* shader); - - virtual void render(float x, float y, float sx, float sy, float r) const {}; - virtual void render(float x, float y, float sx, float sy, float r, float ox, float oy) const {}; - virtual void render(float x, float y, float sx, float sy, float r, Origin origin) const {}; - - protected: - //const Shaders::Shader* mShader; - - }; - - } + namespace Graphics + { + + namespace Shaders { class Shader; }; + + enum class Origin + { + TOPLEFT, + TOPCENTER, + TOPRIGHT, + MIDDLELEFT, + MIDDLECENTER, + MIDDLERIGHT, + BOTTOMLEFT, + BOTTOMCENTER, + BOTTOMRIGHT + }; + + class Renderable + { + public: + //void setShader(const Shaders::Shader* shader); + + virtual void render(float x, float y, float sx, float sy, float r) const {}; + virtual void render(float x, float y, float sx, float sy, float r, float ox, float oy) const {}; + virtual void render(float x, float y, float sx, float sy, float r, Origin origin) const {}; + + protected: + //const Shaders::Shader* mShader; + + }; + + } } #endif \ No newline at end of file -- cgit v1.1-26-g67d0