Mercurial > fife-parpg
diff engine/core/video/renderbackend.h @ 635:3094988564d5
* Added a simple method to query the default video card capabilities. This is still a work in progress. You can now get a list of ScreenModes the device supports. ScreenMode includes information on the screen resolution, if the mode is fullscreen/windowed and if it would use the OpenGL or SDL renderer.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 06 Oct 2010 19:19:08 +0000 |
parents | 5f381fa34769 |
children | 855ad500f991 |
line wrap: on
line diff
--- a/engine/core/video/renderbackend.h Wed Oct 06 15:49:53 2010 +0000 +++ b/engine/core/video/renderbackend.h Wed Oct 06 19:19:08 2010 +0000 @@ -45,6 +45,7 @@ namespace FIFE { class Image; + class ScreenMode; /** Abstract interface for all the renderbackends. */ class RenderBackend: public AbstractImage, public DynamicSingleton<RenderBackend> { @@ -92,6 +93,8 @@ */ virtual Image* createMainScreen(unsigned int width, unsigned int height, unsigned char bitsPerPixel, bool fullscreen, const std::string& title, const std::string& icon) = 0; + Image* createMainScreen(const ScreenMode& mode, const std::string& title, const std::string& icon); + /** Creates an Image suitable for this renderbackend. * @param data Pointer to the imagedata (needs to be in RGBA, 8 bits per channel). * @param width Width of the image.