Public Member Functions | |
| RenderCache () | |
| Constructor. | |
| ~RenderCache () | |
| Destructor. | |
| bool | hasCachedImagery () const |
| Return whether the cache contains anything to draw. | |
| void | render (const Point &basePos, float baseZ, const Rect &clipper) const |
| Send the contents of the cache to the Renderer. | |
| void | clearCachedImagery () |
| Erase any stored image information. | |
| void | cacheImage (const Image &image, const Rect &destArea, float zOffset, const ColourRect &cols, const Rect *clipper=0, bool clipToDisplay=false) |
| Add an image to the cache. | |
| void | cacheText (const String &text, const Font *font, TextFormatting format, const Rect &destArea, float zOffset, const ColourRect &cols, const Rect *clipper=0, bool clipToDisplay=false) |
| Add a text to the cache. | |
Classes | |
| struct | ImageInfo |
| internal struct that holds info about a single image to be drawn. | |
| struct | TextInfo |
| internal struct that holds info about text to be drawn. | |
This is in many ways an optimisation cache, it allows a full image redraw to occur while limiting the amount of information that needs to be re-calculated.
|
||||||||||||||||||||||||||||
|
Add an image to the cache.
|
|
||||||||||||||||||||||||||||||||||||
|
Add a text to the cache.
|
|
|
Return whether the cache contains anything to draw.
|
|
||||||||||||||||
|
Send the contents of the cache to the Renderer.
|
1.4.5