]> git.lizzy.rs Git - dragonfireclient.git/blob - src/main.h
fully working i guess
[dragonfireclient.git] / src / main.h
1 /*
2 Minetest-c55
3 Copyright (C) 2010 celeron55, Perttu Ahola <celeron55@gmail.com>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifndef MAIN_HEADER
21 #define MAIN_HEADER
22
23 // Settings
24 #include "utility.h"
25 extern Settings g_settings;
26
27 // A thread safe wrapper to irrlicht
28 // On a server build, this is always NULL.
29 // TODO: Remove this
30 #include "irrlichtwrapper.h"
31 extern IrrlichtWrapper *g_irrlicht;
32
33 // This makes and maps textures
34 #include "tile.h"
35 extern ITextureSource *g_texturesource;
36
37 // Debug streams
38
39 #include <fstream>
40
41 extern std::ostream *dout_con_ptr;
42 extern std::ostream *derr_con_ptr;
43 extern std::ostream *dout_client_ptr;
44 extern std::ostream *derr_client_ptr;
45 extern std::ostream *dout_server_ptr;
46 extern std::ostream *derr_server_ptr;
47
48 #define dout_con (*dout_con_ptr)
49 #define derr_con (*derr_con_ptr)
50 #define dout_client (*dout_client_ptr)
51 #define derr_client (*derr_client_ptr)
52 #define dout_server (*dout_server_ptr)
53 #define derr_server (*derr_server_ptr)
54
55 #endif
56