projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added z order support and draw_part().
[supertux.git]
/
lib
/
special
/
sprite.h
diff --git
a/lib/special/sprite.h
b/lib/special/sprite.h
index
184e2f6
..
86b4a06
100644
(file)
--- a/
lib/special/sprite.h
+++ b/
lib/special/sprite.h
@@
-39,8
+39,11
@@
namespace SuperTux
{
std::string name;
{
std::string name;
+ /** Position correction */
int x_offset;
int y_offset;
int x_offset;
int y_offset;
+ /** Drawing priority in queue */
+ int z_order;
/** Frames per second */
float fps;
/** 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(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);
/** Set action (or state) */
void set_action(std::string act);