diff engine/core/video/opengl/renderbackendopengl.h @ 642:6e2151325017

* Added the ability to query the current running screen mode * Added a method to detect the closest supported screen mode (not complete yet). If no matching screen modes are detected an exception is thrown. * Small change to the way the screen is initialized. The screen mode now MUST be in the supported screen mode list before the screen will initialize.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 08 Oct 2010 21:22:02 +0000
parents 855ad500f991
children 5d6b1820b953
line wrap: on
line diff
--- a/engine/core/video/opengl/renderbackendopengl.h	Thu Oct 07 19:39:58 2010 +0000
+++ b/engine/core/video/opengl/renderbackendopengl.h	Fri Oct 08 21:22:02 2010 +0000
@@ -34,6 +34,8 @@
 
 namespace FIFE {
 
+	class ScreenMode;
+
 	/** The main class of the OpenGL-based renderer.
 	 * @see RenderBackend
 	 */
@@ -47,7 +49,7 @@
 		void init(const std::string& driver);
 		void clearBackBuffer();
 
-		Image* createMainScreen(unsigned int width, unsigned int height, unsigned char bitsPerPixel, bool fullscreen, const std::string& title, const std::string& icon);
+		Image* createMainScreen(const ScreenMode& mode, const std::string& title, const std::string& icon);
 		Image* createImage(const uint8_t* data, unsigned int width, unsigned int height);
 		Image* createImage(SDL_Surface* surface);
  		bool putPixel(int x, int y, int r, int g, int b, int a = 255);