diff options
author | sapier <Sapier at GMX dot net> | 2014-04-27 16:09:21 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-05-18 01:08:13 +0200 |
commit | 09970b7b6daa82ba0cb71540ebb70e671637782f (patch) | |
tree | bea283470a892adcdcc5962b498a10ca2f405297 /src/client.cpp | |
parent | d9f6f9e7a8038071648eb53da0d5be8abdaa9e45 (diff) | |
download | minetest-09970b7b6daa82ba0cb71540ebb70e671637782f.tar.gz minetest-09970b7b6daa82ba0cb71540ebb70e671637782f.tar.bz2 minetest-09970b7b6daa82ba0cb71540ebb70e671637782f.zip |
Add support for interlaced polarized 3d screens
Add (experimental) support for topbottom as well as sidebyside 3d mode
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/client.cpp b/src/client.cpp index 6b5072267..5f3c3f590 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -51,6 +51,9 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "util/directiontables.h" #include "util/pointedthing.h" #include "version.h" +#include "drawscene.h" + +extern gui::IGUIEnvironment* guienv; /* QueuedMeshUpdate @@ -2648,10 +2651,6 @@ float Client::mediaReceiveProgress() return 1.0; // downloader only exists when not yet done } -void draw_load_screen(const std::wstring &text, - IrrlichtDevice* device, gui::IGUIFont* font, - float dtime=0 ,int percent=0, bool clouds=true); - void Client::afterContentReceived(IrrlichtDevice *device, gui::IGUIFont* font) { infostream<<"Client::afterContentReceived() started"<<std::endl; @@ -2680,7 +2679,7 @@ void Client::afterContentReceived(IrrlichtDevice *device, gui::IGUIFont* font) { verbosestream<<"Updating item textures and meshes"<<std::endl; wchar_t* text = wgettext("Item textures..."); - draw_load_screen(text,device,font,0,0); + draw_load_screen(text, device, guienv, font, 0, 0); std::set<std::string> names = m_itemdef->getAll(); size_t size = names.size(); size_t count = 0; @@ -2693,7 +2692,7 @@ void Client::afterContentReceived(IrrlichtDevice *device, gui::IGUIFont* font) count++; percent = count*100/size; if (count%50 == 0) // only update every 50 item - draw_load_screen(text,device,font,0,percent); + draw_load_screen(text, device, guienv, font, 0, percent); } delete[] text; } |