Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
config.h
Go to the documentation of this file.
1 // Filename: confing.h
2 // Des: this file contains kge compile configurations
3 // you can enable or disable any feature listed below
4 // Date: 6/5/1389 (jalali)
5 // Programmer: Pooya Shahinfar (Pswin)
6 
7 #ifndef CONFIG_H
8 #define CONFIG_H
9 
10 //***************************
11 // Renderer confings
12 //***************************
13 
14 //==================
15 // OpenGL
16 //==================
17 // OpenGL , if you don't want to use OpenGL 2.0+ for rendering then comment next line
18 #define KGE_USE_OPENGL_2X 1
19 #define KGE_USE_OPENGL_3X 0
20 
21 #if (KGE_USE_OPENGL_2X + KGE_USE_OPENGL_3X) >= 1
22  //#define KGE_USE_OPENGL 1
23 #endif
24 
25 //==================
26 // Microsoft DirectX
27 //==================
28 // MS DirectX 9 , if you don't want to use Microsoft DirectX 9.x for rendering then comment next lien
29 #define KGE_USE_DIRECTX_9 1
30 
31 
32 
33 //******************************
34 // Sound System configurations
35 //******************************
36 
37 // OpenAL
38 #define KGE_USE_OPENAL 0
39 
40 #if KGE_USE_OPENAL == 1
41  // if you don't want to use vorbis OGG format then comment following line
42  #define KGE_USE_OGG 1
43 #endif
44 
45 // FMOD
46 #define KGE_USE_FMOD 0
47 
48 // BASS
49 #define KGE_USE_BASS 1
50 
51 #if (KGE_USE_FMOD == 1) || (KGE_USE_BASS == 1) || (KGE_USE_OPENAL == 1)
52  #define KGE_USE_SOUND_SYSTEM 1
53 #endif
54 
55 //*************************************
56 // third party libraries configuration
57 //*************************************
58 
59 // If you don't want to use SDL library then comment next line.
60 #define KGE_USE_SDL 1
61 
62 // if you don't want to use NVIDIA PhysX then comment next line
63 //#define KGE_USE_PHYSX 1
64 
65 //**************************************
66 // Use boost
67 //**************************************
68 //#define KGE_USE_BOOST 1
69 
70 //************************************************************************
71 // M E M O R Y C O N F I G
72 //************************************************************************
73 #define KGE_MEMORY_NEDMALLOC 1
74 
75 // use nedmalloc for default allocator
76 #define KGE_MEMORY_ALLOCATOR KGE_MEMORY_NEDMALLOC
77 
78 #define KGE_TRACK_MEMORY
79 
80 //*******************************
81 // char set configuration
82 //*******************************
83 
84 // if you don't want kge use unicode then comment following line
85 //#define KGE_USE_UNICODE 1
86 
87 //******************************
88 // hardware extensions
89 //******************************
90 
91 /* note: - Based on the 2009 Steam Hardware Survey the 98.52% of computers having
92  Steam support SSE2,while SSE3 and SSE4 are supported by 95.54% of computers. but
93  3DNow! are not widely supported
94  - you can get new infos form Steam Hardware survay : http://store.steampowered.com/hwsurvey
95 
96  - you can enable only one CPU extension at a time
97 */
98 
99 // SSE/SSE2 (needs Pentium 3 or AMD64 or later processors)
100 //#define KGE_USE_SSE2 1
101 
102 // SSE3/SSE4 (needs Pentium 4 and later)
103 //define KGE_USE_SSE4 1
104 
105 // 3DNow! (works only on AMD processors)
106 //define KGE_USE_3DNOW 1
107 
108 #if (KGE_USE_SSE2 + KGE_USE_3DNOW + KGE_USE_SSE4) > 1
109  #error "Two or more CPU extension enabled."
110 #endif
111 
112 
113 #endif // CONFIG_H