Mercurial > fife-parpg
diff engine/core/video/fonts/abstractfont.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 | 47b49b9b0c0a |
children |
line wrap: on
line diff
--- a/engine/core/video/fonts/abstractfont.h Fri Oct 15 18:54:34 2010 +0000 +++ b/engine/core/video/fonts/abstractfont.h Thu Oct 21 18:50:50 2010 +0000 @@ -99,7 +99,7 @@ * The rsulting image is pooled, so it's not that time critical */ virtual Image* getAsImageMultiline(const std::string& text) = 0; - + virtual std::string splitTextToWidth (const std::string& text, int render_width) = 0; /** Set the color the text should be rendered in @@ -109,14 +109,16 @@ /** Get the color the text was rendered in */ virtual SDL_Color getColor() const = 0; - + /** gets width of given text */ virtual int getWidth(const std::string& text) const = 0; - + /** gets height of this font */ virtual int getHeight() const = 0; + + virtual void invalidate() = 0; }; }