From b08a63790c0fbeacb3f96a74e3eb15abe8c70dab Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Mon, 25 Jun 2012 19:59:17 +0200 Subject: 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 --- src/graphics/common/device.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/graphics/common/device.h') diff --git a/src/graphics/common/device.h b/src/graphics/common/device.h index a8bf32c..cd52fa5 100644 --- a/src/graphics/common/device.h +++ b/src/graphics/common/device.h @@ -22,6 +22,28 @@ namespace Gfx { +struct DeviceConfig +{ + //! Screen width + int width; + //! Screen height + int height; + //! Bits per pixel + int bpp; + //! Full screen + bool fullScreen; + //! Resizeable window + bool resizeable; + //! Hardware acceleration + bool hardwareAccel; + //! Double buffering + bool doubleBuf; + //! No window frame (also set with full screen) + bool noFrame; + + DeviceConfig(); +}; + class CDevice { // TODO -- cgit v1.2.3-1-g7c22