Merge branch '138-toggle-free-look-with-hotkey' into main/gingo-test
[ryzomcore.git] / ryzom / client / src / init_main_loop.h
blob3198e0cf50cf76962e46ff4b3095e92493504968
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef CL_INIT_MAIN_LOOP_H
20 #define CL_INIT_MAIN_LOOP_H
22 #include <string>
24 #include "nel/misc/types_nl.h"
25 #include "nel/misc/progress_callback.h"
26 #include "global.h"
28 #include "3d_notes.h"
30 namespace NL3D
32 class UTextureFile;
35 // active/desactive welcome window
36 void initWelcomeWindow();
38 // popup to offer hardware cursor activaction
39 void initHardwareCursor(bool secondCall = false);
41 // Initialize the main loop.
42 void initMainLoop();
45 // *** Loading sessions
47 // Start a loading session
48 void beginLoading (TBackground background);
50 // End a loading session
51 void endLoading ();
53 // Set the loading continent
54 void setLoadingContinent (class CContinent *continent);
56 extern CProgress ProgressBar;
57 //extern C3DNotes Notes;
59 extern uint64 StartInitTime;
60 extern uint64 StartPlayTime;
62 #if FINAL_VERSION
63 #define USE_ESCAPE_DURING_LOADING false
64 #else // FINAL_VERSION
65 #define USE_ESCAPE_DURING_LOADING true
66 #endif // FINAL_VERSION
68 extern bool UseEscapeDuringLoading;
70 void loadBackgroundBitmap (TBackground background);
72 #endif // CL_INIT_MAIN_LOOP_H
74 /* End of init_main_loop.h */