3 Copyright (C) 2010 celeron55, Perttu Ahola <celeron55@gmail.com>
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.
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.
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.
24 extern std::string getTimestamp();
25 #define DTIME (getTimestamp()+": ")
29 extern JMutex g_range_mutex;
30 extern s16 g_viewing_range_nodes;
31 //extern s16 g_actual_viewing_range_nodes;
32 extern bool g_viewing_range_all;
35 extern Settings g_settings;
40 extern std::ostream *dout_con_ptr;
41 extern std::ostream *derr_con_ptr;
42 extern std::ostream *dout_client_ptr;
43 extern std::ostream *derr_client_ptr;
44 extern std::ostream *dout_server_ptr;
45 extern std::ostream *derr_server_ptr;
47 #define dout_con (*dout_con_ptr)
48 #define derr_con (*derr_con_ptr)
49 #define dout_client (*dout_client_ptr)
50 #define derr_client (*derr_client_ptr)
51 #define dout_server (*dout_server_ptr)
52 #define derr_server (*derr_server_ptr)
54 // TODO: Move somewhere else? materials.h?
55 // This header is only for MATERIALS_COUNT
56 //#include "mapnode.h"
57 //extern video::SMaterial g_materials[MATERIALS_COUNT];
60 extern TextureCache g_texturecache;
62 extern IrrlichtDevice *g_device;