diff options
author | chai <chaifix@163.com> | 2018-10-26 18:40:32 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-26 18:40:32 +0800 |
commit | b04c097db4bf8c45342bca403ca2c8a6d5783a84 (patch) | |
tree | e9c6a8c67998d359ede587bc2ce0edf257c8ceae /src/libjin/Graphics/je_graphic.h | |
parent | ba97a053286bdb17643448cc5034c71065bc4e86 (diff) |
*修复错误界面关闭bug
Diffstat (limited to 'src/libjin/Graphics/je_graphic.h')
-rw-r--r-- | src/libjin/Graphics/je_graphic.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/libjin/Graphics/je_graphic.h b/src/libjin/Graphics/je_graphic.h index 2ed028d..69fa109 100644 --- a/src/libjin/Graphics/je_graphic.h +++ b/src/libjin/Graphics/je_graphic.h @@ -14,12 +14,6 @@ namespace JinEngine namespace Graphics { - // - // Graphic - // |- GraphicSingle - // |- GraphicBatch - // - /// /// Class inherites Graphic doesn't keep any state such as origin, scale and other properties. /// @@ -63,6 +57,16 @@ namespace JinEngine /// void setFilter(GLint min, GLint max); + /// + /// Render graphic single with given coordinates. + /// + void render(int x, int y, float sx = 1, float sy = 1, float r = 0, float ox = 0, float oy = 0); + + /// + /// Render part of graphic single with given coordinates. + /// + void render(const Math::Quad& slice, int x, int y, float sx = 1, float sy = 1, float r = 0, float ox = 0, float oy = 0); + protected: JinEngine::Math::Vector2<uint> mSize; |