RT
config.h
Go to the documentation of this file.
1 /* ************************************************************************** */
2 /* */
3 /* ::: :::::::: */
4 /* config.h :+: :+: :+: */
5 /* +:+ +:+ +:+ */
6 /* By: nihuynh <nihuynh@student.42.fr> +#+ +:+ +#+ */
7 /* +#+#+#+#+#+ +#+ */
8 /* Created: 2019/05/14 21:59:27 by nihuynh #+# #+# */
9 /* Updated: 2019/07/02 03:29:10 by nihuynh ### ########.fr */
10 /* */
11 /* ************************************************************************** */
12 
13 #ifndef CONFIG_H
14 # define CONFIG_H
15 
16 /*
17 ** Definition for the RT :
18 ** Config :
19 */
20 
21 # define BACK_COLOR 0x000000
22 # define FOV 40.0f
23 # define DEPTH_MAX 2
24 # define SUB_SAMPLE 8
25 
26 # define DEBUG 0
27 # define MAC MACB
28 # define KEYMAP_PATH "resources/layout.jpg"
29 # define TEX_DIR "resources/textures/"
30 # define MAT_LST_DIR "resources/materialList.csv"
31 # define SCENE_DIR "scenes/"
32 # define NEW_SCENE "resources/new_scene.rt"
33 
34 /*
35 ** Usage :
36 */
37 
38 # define USAGE "Usage : ./RT <scene.rt> [options]\nOptions : hlt"
39 
40 /*
41 ** User def :
42 */
43 
44 # define T_STEP 5.0f
45 # define A_STEP 5 * DEG_TO_RAD
46 # define MOUSE_SCALING 0.005f
47 
48 /*
49 ** UI :
50 */
51 
52 # define RENDER_SCALE 0.75
53 # define MENUBAR_HEIGHT 18
54 
55 /*
56 ** Static def :
57 */
58 
59 # define MACB 1
60 # define IMAC 2
61 # define IMAC4K 3
62 
63 /*
64 ** Automatic parameters :
65 */
66 
67 # if (MAC == MACB)
68 # define WIDTH 1680
69 # define HEIGHT 1000
70 # elif (MAC == IMAC)
71 # define WIDTH 2560
72 # define HEIGHT 1400
73 # elif (MAC == IMAC4K)
74 # define WIDTH 3200
75 # define HEIGHT 1800
76 # else
77 # define WIDTH 840
78 # define HEIGHT 500
79 # endif
80 
81 #endif