void SectionSpecification::render(Window& srcWindow, float base_z, const ColourRect* modcols, const Rect* clipper, bool clipToDisplay) const { // see if we need to bother rendering if (d_renderControlProperty.empty() || PropertyHelper::stringToBool(srcWindow.getProperty(d_renderControlProperty))) { try { // get the imagery section object with the name we're set up to use const ImagerySection* sect = &WidgetLookManager::getSingleton().getWidgetLook(d_owner).getImagerySection(d_sectionName); // decide what colours are to be used ColourRect finalColours; initColourRectForOverride(srcWindow, finalColours); finalColours.modulateAlpha(srcWindow.getEffectiveAlpha()); if (modcols) finalColours *= *modcols; // render the imagery section sect->render(srcWindow, base_z, &finalColours, clipper, clipToDisplay); } // do nothing here, errors are non-faltal and are logged for debugging purposes. catch (Exception&) {} } }
void SectionSpecification::render(Window& srcWindow, const ColourRect* modcols, const Rectf* clipper, bool clipToDisplay) const { // see if we need to bother rendering if (!shouldBeDrawn(srcWindow)) return; CEGUI_TRY { // get the imagery section object with the name we're set up to use const ImagerySection* sect = &WidgetLookManager::getSingleton().getWidgetLook(d_owner).getImagerySection(d_sectionName); // decide what colours are to be used ColourRect finalColours; initColourRectForOverride(srcWindow, finalColours); if (modcols) finalColours *= *modcols; // render the imagery section sect->render(srcWindow, &finalColours, clipper, clipToDisplay); } // do nothing here, errors are non-faltal and are logged for debugging purposes. CEGUI_CATCH (Exception&) {} }