Mercurial > fife-parpg
diff engine/core/video/renderbackend.h @ 653:01acc9fc35ea
* Moved getCurrentScreenMode() to the renderbackend as renderbackend is what initializes the screen.
* Updated the Color masks to follow the integer standards
* Added some new SDL modes (HW Surface and double buffer) to check for in DeviceCaps.
* RenderBackend now saves the actual flags used to initialize the screen.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 15 Oct 2010 18:54:34 +0000 |
parents | 6e2151325017 |
children | 5d6b1820b953 |
line wrap: on
line diff
--- a/engine/core/video/renderbackend.h Fri Oct 15 15:13:10 2010 +0000 +++ b/engine/core/video/renderbackend.h Fri Oct 15 18:54:34 2010 +0000 @@ -39,13 +39,13 @@ #include "util/base/singleton.h" #include "util/structures/point.h" #include "util/structures/rect.h" +#include "video/devicecaps.h" #include "image.h" namespace FIFE { class Image; - class ScreenMode; /** Abstract interface for all the renderbackends. */ class RenderBackend: public AbstractImage, public DynamicSingleton<RenderBackend> { @@ -117,6 +117,11 @@ void captureScreen(const std::string& filename); SDL_Surface* getSurface(); + + /** Get current video mode + */ + const ScreenMode& getCurrentScreenMode() const; + unsigned int getWidth() const; unsigned int getHeight() const; unsigned int getScreenWidth() const { return getWidth(); } @@ -158,6 +163,7 @@ unsigned int m_chunkingsize; bool m_iscolorkeyenabled; SDL_Color m_colorkey; + ScreenMode m_screenMode; }; }