From 09970b7b6daa82ba0cb71540ebb70e671637782f Mon Sep 17 00:00:00 2001 From: sapier Date: Sun, 27 Apr 2014 16:09:21 +0200 Subject: Add support for interlaced polarized 3d screens Add (experimental) support for topbottom as well as sidebyside 3d mode --- src/client.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/client.cpp') 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"< 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; } -- cgit v1.2.3