summaryrefslogtreecommitdiffstats
path: root/src/graphics/common/device.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-06-25 19:59:17 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-06-25 19:59:17 +0200
commitb08a63790c0fbeacb3f96a74e3eb15abe8c70dab (patch)
tree7260140ae1ea308bd256370c6fcbbc57dbd13441 /src/graphics/common/device.cpp
parentf58918031c001a0159eaf8f18d4e451e70089d30 (diff)
downloadcolobot-b08a63790c0fbeacb3f96a74e3eb15abe8c70dab.tar.gz
colobot-b08a63790c0fbeacb3f96a74e3eb15abe8c70dab.tar.bz2
colobot-b08a63790c0fbeacb3f96a74e3eb15abe8c70dab.zip
SDL project
- added (very basic) SDL template in CApplication and CEngine - split project into two targets: colobot_old (dependent on DirectX and WinAPI) and colobot_new (dependent on SDL and OpenGL) - moved sound.h/cpp to old/ and created new template in Snd namespace - added platform-independent dialog boxes in app/system.h/cpp
Diffstat (limited to 'src/graphics/common/device.cpp')
-rw-r--r--src/graphics/common/device.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/graphics/common/device.cpp b/src/graphics/common/device.cpp
new file mode 100644
index 0000000..2e3db61
--- /dev/null
+++ b/src/graphics/common/device.cpp
@@ -0,0 +1,14 @@
+#include "graphics/common/device.h"
+
+//! Sets the default values
+Gfx::DeviceConfig::DeviceConfig()
+{
+ width = 800;
+ height = 600;
+ bpp = 16;
+ fullScreen = false;
+ resizeable = false;
+ hardwareAccel = true;
+ doubleBuf = true;
+ noFrame = false;
+} \ No newline at end of file