Mercurial > fife-parpg
comparison engine/core/video/renderbackend.h @ 654:5d6b1820b953
* Added the ability to change screen modes on the fly. This works both in OpenGL and SDL modes.
* Added IEngineChangeListener so the client can update the cameras viewport if the screen mode has been changed. I chose to do it this way because the engine has no way to know which camera it should update. It will be up to the client to do it.
* The cursor surface is now correctly freed when exiting.
* Added DeviceCaps::getNearestScreenMode() for the client to request a supported screen mode.
closes[t:315]
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 21 Oct 2010 18:50:50 +0000 |
parents | 01acc9fc35ea |
children | e3140f01749d |
comparison
equal
deleted
inserted
replaced
653:01acc9fc35ea | 654:5d6b1820b953 |
---|---|
90 * @param icon The window icon to use. | 90 * @param icon The window icon to use. |
91 * @return The new Screen Image | 91 * @return The new Screen Image |
92 */ | 92 */ |
93 virtual Image* createMainScreen(const ScreenMode& mode, const std::string& title, const std::string& icon) = 0; | 93 virtual Image* createMainScreen(const ScreenMode& mode, const std::string& title, const std::string& icon) = 0; |
94 | 94 |
95 /** Sets the mainscreen display mode. | |
96 * @param mode The ScreenMode to change the display to. @see FIFE::ScreenMode. | |
97 * @return The new Screen Image | |
98 */ | |
99 virtual Image* setScreenMode(const ScreenMode& mode) = 0; | |
100 | |
95 /** Creates an Image suitable for this renderbackend. | 101 /** Creates an Image suitable for this renderbackend. |
96 * @param data Pointer to the imagedata (needs to be in RGBA, 8 bits per channel). | 102 * @param data Pointer to the imagedata (needs to be in RGBA, 8 bits per channel). |
97 * @param width Width of the image. | 103 * @param width Width of the image. |
98 * @param height Height of the image. | 104 * @param height Height of the image. |
99 * @return The new Image. | 105 * @return The new Image. |
116 */ | 122 */ |
117 void captureScreen(const std::string& filename); | 123 void captureScreen(const std::string& filename); |
118 | 124 |
119 SDL_Surface* getSurface(); | 125 SDL_Surface* getSurface(); |
120 | 126 |
121 /** Get current video mode | 127 /** Get current screen mode |
128 * @return The current screen mode | |
122 */ | 129 */ |
123 const ScreenMode& getCurrentScreenMode() const; | 130 const ScreenMode& getCurrentScreenMode() const; |
124 | 131 |
125 unsigned int getWidth() const; | 132 unsigned int getWidth() const; |
126 unsigned int getHeight() const; | 133 unsigned int getHeight() const; |