X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsprite.h;h=62dba8f198248cec3a2296e02543bf3f7ef95c3f;hb=4b985b51e7d2da923d53a61bb5038d11978e9cda;hp=ce5889a57e2e80e508557be8c98b7465c24c11b4;hpb=2ec1be264110139466ab70422b8f4fd9c22e5c8c;p=supertux.git diff --git a/src/sprite.h b/src/sprite.h index ce5889a57..62dba8f19 100644 --- a/src/sprite.h +++ b/src/sprite.h @@ -23,7 +23,8 @@ #include #include #include "lispreader.h" -#include "texture.h" +#include "screen/texture.h" +#include "vector.h" class Sprite { @@ -55,10 +56,13 @@ class Sprite /** Update the sprite and process to the next frame */ void update(float delta); - void draw(float x, float y); - void draw_part(float sx, float sy, float x, float y, float w, float h); + void draw(DrawingContext& context, const Vector& pos, int layer, + uint32_t drawing_effect = NONE_EFFECT); int get_current_frame() const; + float get_fps() { return fps; } ; + int get_frames() { return surfaces.size(); } ; + std::string get_name() const { return name; } int get_width() const; int get_height() const;