X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fspecial%2Fsprite.h;h=86b4a06af244137d5a8af60915948c8bd5cafb7d;hb=5c83b03e600a26076dc2aecc9fe51fcd845b224a;hp=184e2f60f672e08789d5dd1b7aaebd80fb79718d;hpb=a9703187eb1d05964a279f6064755a831a8d0aeb;p=supertux.git diff --git a/lib/special/sprite.h b/lib/special/sprite.h index 184e2f60f..86b4a06af 100644 --- a/lib/special/sprite.h +++ b/lib/special/sprite.h @@ -39,8 +39,11 @@ namespace SuperTux { std::string name; + /** Position correction */ int x_offset; int y_offset; + /** Drawing priority in queue */ + int z_order; /** Frames per second */ float fps; @@ -58,6 +61,10 @@ namespace SuperTux void draw(DrawingContext& context, const Vector& pos, int layer, Uint32 drawing_effect = NONE_EFFECT); + void draw_part(DrawingContext& context, const Vector& source, + const Vector& size, const Vector& pos, int layer, + Uint32 drawing_effect = NONE_EFFECT); + /** Set action (or state) */ void set_action(std::string act);