forked from rubenwardy/NodeBoxEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.h
48 lines (44 loc) · 952 Bytes
/
common.h
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
#ifndef _COMMON_H_INCLUDED_
#define _COMMON_H_INCLUDED_
#include <irrlicht.h>
#include <iostream>
using namespace irr;
using namespace core;
using namespace scene;
using namespace gui;
using namespace video;
enum VIEWPORT
{
EVIEW_PERS = 0,
EVIEW_XZ = 1,
EVIEW_XY = 2,
EVIEW_ZY = 3
};
enum CDR_TYPE
{
CDR_X_P = 1,
CDR_X_N = 2,
CDR_Y_P = 3,
CDR_Y_N = 4,
CDR_Z_P = 5,
CDR_Z_N = 6,
CDR_XZ = 7,
CDR_XY = 8,
CDR_ZY = 9
};
// Enums
enum BUILD_TYPE
{
NBT_NB = 1, // Just the node box table
NBT_NBS = 2, // The node box table with draw type and parent holder (nodebox={})
NBT_FULL = 3 // Whole node definition
};
// Defines
#define EDITOR_TEXT_VERSION "0.6.0 - Stone"
#define EDITOR_VERSION 1
#define EDITOR_PARSER 1
#define NODE_RES 16 // The resolution of the snapping (16)
#define NODE_THIN 1/NODE_RES // The smallest a box can be (1/NODE_RES)
#define NODEB_MAX 50 // Maximum amount of nodeboxes (50)
#define NODEB_MENU_START 250
#endif