From b04c097db4bf8c45342bca403ca2c8a6d5783a84 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 26 Oct 2018 18:40:32 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E5=85=B3=E9=97=ADbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Graphics/je_graphic.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/libjin/Graphics/je_graphic.h') 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 mSize; -- cgit v1.1-26-g67d0