#include <CEGUIRenderCache.h>
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.
Definition at line 59 of file CEGUIRenderCache.h.
|
Constructor.
Definition at line 31 of file CEGUIRenderCache.cpp. |
|
Destructor.
Definition at line 34 of file CEGUIRenderCache.cpp. |
|
Add an image to the cache.
Definition at line 97 of file CEGUIRenderCache.cpp. Referenced by CEGUI::MultiLineEditbox::cacheTextLines(), CEGUI::FrameComponent::doBackgroundRender(), CEGUI::ListboxTextItem::draw(), CEGUI::RenderableImage::draw_impl(), CEGUI::RenderableFrame::draw_impl(), CEGUI::Static::populateRenderCache(), CEGUI::ImageryComponent::render_impl(), and CEGUI::FrameComponent::render_impl(). |
|
Add a text to the cache.
Definition at line 119 of file CEGUIRenderCache.cpp. Referenced by CEGUI::MultiLineEditbox::cacheTextLines(), CEGUI::ListboxTextItem::draw(), CEGUI::TextItem::populateRenderCache(), CEGUI::StaticText::populateRenderCache(), and CEGUI::TextComponent::render_impl(). |
|
Erase any stored image information.
Definition at line 91 of file CEGUIRenderCache.cpp. Referenced by CEGUI::Window::drawSelf(). |
|
Return whether the cache contains anything to draw.
Definition at line 37 of file CEGUIRenderCache.cpp. Referenced by CEGUI::Window::drawSelf(). |
|
Send the contents of the cache to the Renderer.
Definition at line 42 of file CEGUIRenderCache.cpp. References CEGUI::Rect::getIntersection(), CEGUI::System::getSingleton(), and CEGUI::Rect::offset(). Referenced by CEGUI::Window::drawSelf(). |