aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
blob: 950e4039f6e3f3b8f14dc3b7bfbddcfb2b4cd37e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
(c) 2010 Perttu Ahola <celeron55@gmail.com>
*/

#ifndef MAIN_HEADER
#define MAIN_HEADER

#include <string>
extern std::string getTimestamp();
#define DTIME (getTimestamp()+": ")

#include <jmutex.h>

extern JMutex g_range_mutex;
extern s16 g_viewing_range_nodes;
//extern s16 g_actual_viewing_range_nodes;
extern bool g_viewing_range_all;

// Settings
extern Settings g_settings;

#include <fstream>

// Debug streams
extern std::ostream *dout_con_ptr;
extern std::ostream *derr_con_ptr;
extern std::ostream *dout_client_ptr;
extern std::ostream *derr_client_ptr;
extern std::ostream *dout_server_ptr;
extern std::ostream *derr_server_ptr;

#define dout_con (*dout_con_ptr)
#define derr_con (*derr_con_ptr)
#define dout_client (*dout_client_ptr)
#define derr_client (*derr_client_ptr)
#define dout_server (*dout_server_ptr)
#define derr_server (*derr_server_ptr)

// TODO: Move somewhere else? materials.h?
// This header is only for MATERIALS_COUNT
#include "mapnode.h"
extern video::SMaterial g_materials[MATERIALS_COUNT];
//extern video::SMaterial g_mesh_materials[3];

extern IrrlichtDevice *g_device;

#endif