diff options
author | chai <chaifix@163.com> | 2018-11-26 08:37:17 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-26 08:37:17 +0800 |
commit | 24b712a956a48f43788e1c11e121aedf52e22278 (patch) | |
tree | 0bbccc98f1cb24c44cfb58ca99ce305b9f513e09 /src/libjin/graphics/je_renderable.h | |
parent | 1d54138b94a384917d47abd8109c586b1b7ac323 (diff) |
*粒子系统
Diffstat (limited to 'src/libjin/graphics/je_renderable.h')
-rw-r--r-- | src/libjin/graphics/je_renderable.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libjin/graphics/je_renderable.h b/src/libjin/graphics/je_renderable.h index ca785c3..0e29556 100644 --- a/src/libjin/graphics/je_renderable.h +++ b/src/libjin/graphics/je_renderable.h @@ -6,6 +6,8 @@ namespace JinEngine namespace Graphics { + namespace Shaders { class Shader; }; + enum class Origin { TOPLEFT, @@ -19,13 +21,18 @@ namespace JinEngine BOTTOMRIGHT }; - class IRenderable + 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; + }; } |