# By default, all the settings are commented and not functional.
# Uncomment settings by removing the preceding #.
+#
# Client side stuff
+#
#wanted_fps = 30
#fps_max = 60
#address = kray.dy.fi
#name =
-#random_input = false
-#client_delete_unused_sectors_timeout = 1200
-
+# Whether to try to fog out the border of the visible area
#enable_fog = true
+# Enable a bit lower water surface; disable for speed
#new_style_water = true
+# Enable nice leaves; disable for speed
#new_style_leaves = true
+# Whether to draw a frametime graph
#frametime_graph = false
+# Enable combining mainly used textures to a bigger one
#enable_texture_atlas = true
+# Path to texture directory
#texture_path =
+# Possible values: null, software, burningsvideo, direct3d8, direct3d9, opengl
+#video_driver = opengl
+#
+#random_input = false
+#client_delete_unused_sectors_timeout = 1200
+
+#
# Server side stuff
+#
#map-dir = /home/palle/custom_map
g_settings.setDefault("frametime_graph", "false");
g_settings.setDefault("enable_texture_atlas", "true");
g_settings.setDefault("texture_path", "");
+ g_settings.setDefault("video_driver", "opengl");
g_settings.setDefault("free_move", "false");
g_settings.setDefault("continuous_forward", "false");
\r
std::string playername = g_settings.get("name");\r
\r
- /*\r
- Resolution selection\r
- */\r
+ // Resolution selection\r
\r
bool fullscreen = false;\r
u16 screenW = g_settings.getU16("screenW");\r
u16 screenH = g_settings.getU16("screenH");\r
\r
- //\r
-\r
- MyEventReceiver receiver;\r
+ // Determine driver\r
\r
video::E_DRIVER_TYPE driverType;\r
-\r
-#ifdef _WIN32\r
- //driverType = video::EDT_DIRECT3D9;\r
- driverType = video::EDT_OPENGL;\r
-#else\r
- driverType = video::EDT_OPENGL;\r
- //driverType = video::EDT_BURNINGSVIDEO; // Best software renderer\r
-#endif\r
+ \r
+ std::string driverstring = g_settings.get("video_driver");\r
+\r
+ if(driverstring == "null")\r
+ driverType = video::EDT_NULL;\r
+ else if(driverstring == "software")\r
+ driverType = video::EDT_SOFTWARE;\r
+ else if(driverstring == "burningsvideo")\r
+ driverType = video::EDT_BURNINGSVIDEO;\r
+ else if(driverstring == "direct3d8")\r
+ driverType = video::EDT_DIRECT3D8;\r
+ else if(driverstring == "direct3d9")\r
+ driverType = video::EDT_DIRECT3D9;\r
+ else if(driverstring == "opengl")\r
+ driverType = video::EDT_OPENGL;\r
+ else\r
+ {\r
+ dstream<<"WARNING: Invalid video_driver specified; defaulting "\r
+ "to opengl"<<std::endl;\r
+ driverType = video::EDT_OPENGL;\r
+ }\r
\r
// create device and exit if creation failed\r
\r
+ MyEventReceiver receiver;\r
+\r
IrrlichtDevice *device;\r
device = createDevice(driverType,\r
core::dimension2d<u32>(screenW, screenH),\r