projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SDL: Implement lightmaps smaller than the screen size. LIGHTMAP_DIV is calculated...
[supertux.git]
/
src
/
object
/
floating_image.hpp
diff --git
a/src/object/floating_image.hpp
b/src/object/floating_image.hpp
index
db37066
..
19797db
100644
(file)
--- a/
src/object/floating_image.hpp
+++ b/
src/object/floating_image.hpp
@@
-65,6
+65,9
@@
public:
void set_action(const std::string& action);
std::string get_action();
void set_action(const std::string& action);
std::string get_action();
+ void fade_in(float fadetime);
+ void fade_out(float fadetime);
+
void update(float elapsed_time);
void draw(DrawingContext& context);
void update(float elapsed_time);
void draw(DrawingContext& context);
@@
-74,6
+77,8
@@
private:
bool visible;
AnchorPoint anchor;
Vector pos;
bool visible;
AnchorPoint anchor;
Vector pos;
+ float fading;
+ float fadetime;
};
#endif
};
#endif