Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2012-08-20 13:39:03 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:42:11 +0300
commit80d3874ed0add377a93e5d6334a1fce11f6a6a2e (patch)
tree813161b5d4481f584bbb3b72f146a9f0c02121fa /gui/element.hpp
parente00411fd42c356e9e988dc99efc10b3ebcb4bd15 (diff)
refactored guy::Controller to accept yg::gl::Screen for caching, updating elements on every frame and purging them when renderPolicy is reseted.
Diffstat (limited to 'gui/element.hpp')
-rw-r--r--gui/element.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/element.hpp b/gui/element.hpp
index 8efbbae5d3..7a1f55a8b2 100644
--- a/gui/element.hpp
+++ b/gui/element.hpp
@@ -72,6 +72,12 @@ namespace gui
int visualRank() const;
virtual void cache();
+ /// this method is called upon renderPolicy destruction and should clean
+ /// all rendering-related resources, p.e. displayLists.
+ virtual void purge();
+ /// this method is called in each frame and should be overriden if the
+ /// element wants to update it's internal state.
+ virtual void update();
virtual void setController(Controller * controller);