comparison engine/core/video/image.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 f3457443c95f
children e3140f01749d
comparison
equal deleted inserted replaced
653:01acc9fc35ea 654:5d6b1820b953
144 * @param width Width of the image. 144 * @param width Width of the image.
145 * @param height Height of the image. 145 * @param height Height of the image.
146 */ 146 */
147 Image(const uint8_t* data, unsigned int width, unsigned int height); 147 Image(const uint8_t* data, unsigned int width, unsigned int height);
148 148
149 /** Invalidates the Image causing it to be reset or re-loaded
150 */
151 virtual void invalidate() = 0;
152
149 /** Renders itself to the Destination surface at the rectangle rect. 153 /** Renders itself to the Destination surface at the rectangle rect.
150 * 154 *
151 * @param rect The position and clipping where to draw this image to. 155 * @param rect The position and clipping where to draw this image to.
152 * @param target Target surface to draw to, e.g. main screen or other image 156 * @param target Target surface to draw to, e.g. main screen or other image
153 * @param alpha The alpha value, with which to draw self. opaque by default. 157 * @param alpha The alpha value, with which to draw self. opaque by default.