summaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-03-15 07:25:22 +0100
committerCraig Robbins <kde.psych@gmail.com>2015-03-15 22:01:52 +1000
commite4f7c92cff0badd6c40b47bd90b1fc1b35456a1a (patch)
treed080116bc042d87283ed4c3d6e5cec9977cfd141 /src/nodedef.h
parent2bc0165652ec9244081f7c0db28c8d9c81b5d308 (diff)
downloadminetest-e4f7c92cff0badd6c40b47bd90b1fc1b35456a1a.tar.gz
minetest-e4f7c92cff0badd6c40b47bd90b1fc1b35456a1a.tar.bz2
minetest-e4f7c92cff0badd6c40b47bd90b1fc1b35456a1a.zip
Finer progress bar updates when initializing nodes
The bar is only drawn when the user will notice a change, which prevents time overheads that this commit would cause, resulting from useless draws.
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index a1c2e1b53..bd13a7bb2 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -378,7 +378,9 @@ public:
/*
Update tile textures to latest return values of TextueSource.
*/
- virtual void updateTextures(IGameDef *gamedef)=0;
+ virtual void updateTextures(IGameDef *gamedef,
+ /*argument: */void (*progress_callback)(void *progress_args, u32 progress, u32 max_progress),
+ /*argument: */void *progress_callback_args)=0;
virtual void serialize(std::ostream &os, u16 protocol_version)=0;
virtual void deSerialize(std::istream &is)=0;