From 5bd4477d4cf413e90a6b9ef5c8991798a687a0ec Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 20 Nov 2018 08:35:18 +0800 Subject: =?UTF-8?q?*=E6=9B=B4=E6=96=B0sprite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/graphics/animations/je_animation.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src/libjin/graphics/animations/je_animation.h') diff --git a/src/libjin/graphics/animations/je_animation.h b/src/libjin/graphics/animations/je_animation.h index 9926cf9..a13a83b 100644 --- a/src/libjin/graphics/animations/je_animation.h +++ b/src/libjin/graphics/animations/je_animation.h @@ -19,12 +19,34 @@ namespace JinEngine class Animation { public: + /// + /// + /// void update(float dt); + /// + /// + /// void start(); + + /// + /// + /// void pause(); + + /// + /// + /// void stop(); + + /// + /// Force rewind. + /// void rewind(); + + /// + /// + /// void setSpeed(float speed); /// @@ -44,6 +66,11 @@ namespace JinEngine /// void setCurrentFrame(uint frame); + /// + /// + /// + void render(float x, float y, float sx, float sy, float r); + private: /// /// Key frames. -- cgit v1.1-26-g67d0