Go to the source code of this file.
Namespaces | |
namespace | irr |
namespace | irr::video |
Functions | |
void | guiScalingCache (const io::path &key, video::IVideoDriver *driver, video::IImage *value) |
void | guiScalingCacheClear () |
video::ITexture * | guiScalingResizeCached (video::IVideoDriver *driver, video::ITexture *src, const core::rect< s32 > &srcrect, const core::rect< s32 > &destrect) |
video::ITexture * | guiScalingImageButton (video::IVideoDriver *driver, video::ITexture *src, s32 width, s32 height) |
void | draw2DImageFilterScaled (video::IVideoDriver *driver, video::ITexture *txr, const core::rect< s32 > &destrect, const core::rect< s32 > &srcrect, const core::rect< s32 > *cliprect=nullptr, const video::SColor *const colors=nullptr, bool usealpha=false) |
void | draw2DImage9Slice (video::IVideoDriver *driver, video::ITexture *texture, const core::rect< s32 > &destrect, const core::rect< s32 > &srcrect, const core::rect< s32 > &middlerect, const core::rect< s32 > *cliprect=nullptr, const video::SColor *const colors=nullptr) |
void draw2DImage9Slice | ( | video::IVideoDriver * | driver, |
video::ITexture * | texture, | ||
const core::rect< s32 > & | destrect, | ||
const core::rect< s32 > & | srcrect, | ||
const core::rect< s32 > & | middlerect, | ||
const core::rect< s32 > * | cliprect = nullptr, | ||
const video::SColor *const | colors = nullptr ) |
References draw2DImageFilterScaled().
Referenced by GUIAnimatedImage::draw(), GUIBackgroundImage::draw(), and GUIButton::draw().
void draw2DImageFilterScaled | ( | video::IVideoDriver * | driver, |
video::ITexture * | txr, | ||
const core::rect< s32 > & | destrect, | ||
const core::rect< s32 > & | srcrect, | ||
const core::rect< s32 > * | cliprect = nullptr, | ||
const video::SColor *const | colors = nullptr, | ||
bool | usealpha = false ) |
References guiScalingResizeCached().
Referenced by GUIAnimatedImage::draw(), GUIBackgroundImage::draw(), draw2DImage9Slice(), RenderingEngine::draw_load_screen(), GUIEngine::drawBackground(), Hud::drawCompassTranslate(), Hud::drawCrosshair(), GUIEngine::drawFooter(), GUIEngine::drawHeader(), Hud::drawItem(), Hud::drawItems(), drawItemStack(), Hud::drawLuaElements(), GUIEngine::drawOverlay(), and Hud::drawStatbar().
void guiScalingCache | ( | const io::path & | key, |
video::IVideoDriver * | driver, | ||
video::IImage * | value ) |
References g_imgCache, g_settings, and Settings::getBool().
Referenced by TextureSource::generateTexture(), and TextureSource::rebuildTexture().
void guiScalingCacheClear | ( | ) |
References g_imgCache, g_txrCache, and RenderingEngine::get_video_driver().
Referenced by Client::~Client(), and Client::afterContentReceived().
video::ITexture * guiScalingImageButton | ( | video::IVideoDriver * | driver, |
video::ITexture * | src, | ||
s32 | width, | ||
s32 | height ) |
References guiScalingResizeCached().
Referenced by load_button_texture(), GUIButton::setFromStyle(), and GUIButtonImage::setFromStyle().
video::ITexture * guiScalingResizeCached | ( | video::IVideoDriver * | driver, |
video::ITexture * | src, | ||
const core::rect< s32 > & | srcrect, | ||
const core::rect< s32 > & | destrect ) |
References errorstream, g_imgCache, g_settings, g_txrCache, Settings::getBool(), imageCleanTransparent(), imageScaleNNAA(), porting::mt_snprintf(), and npot2().
Referenced by draw2DImageFilterScaled(), and guiScalingImageButton().