#include "imagesource.h"
#include <IFileSystem.h>
#include "imagefilters.h"
#include "mesh.h"
#include "renderingengine.h"
#include "settings.h"
#include "texturepaths.h"
#include "irrlicht_changes/printing.h"
#include "util/base64.h"
#include "util/numeric.h"
#include "util/strfnd.h"
Macros | |
#define | CHECK_BASEIMG() |
#define | COMPLAIN_INVALID(description) |
#define | CHECK_DIM(w, h) |
Functions | |
template<bool overlay = false> | |
static void | blit_with_alpha (video::IImage *src, video::IImage *dst, v2s32 dst_pos, v2u32 size) |
Draw an image on top of another one with gamma-incorrect alpha compositing. | |
static void | apply_colorize (video::IImage *dst, v2u32 dst_pos, v2u32 size, const video::SColor color, int ratio, bool keep_alpha) |
static void | apply_multiplication (video::IImage *dst, v2u32 dst_pos, v2u32 size, const video::SColor color) |
static void | apply_screen (video::IImage *dst, v2u32 dst_pos, v2u32 size, const video::SColor color) |
static void | apply_hue_saturation (video::IImage *dst, v2u32 dst_pos, v2u32 size, s32 hue, s32 saturation, s32 lightness, bool colorize) |
static void | apply_overlay (video::IImage *overlay, video::IImage *dst, v2s32 overlay_pos, v2s32 dst_pos, v2u32 size, bool hardlight) |
static void | apply_brightness_contrast (video::IImage *dst, v2u32 dst_pos, v2u32 size, s32 brightness, s32 contrast) |
static void | apply_mask (video::IImage *mask, video::IImage *dst, v2s32 mask_pos, v2s32 dst_pos, v2u32 size) |
static void | draw_crack (video::IImage *crack, video::IImage *dst, bool use_overlay, s32 frame_count, s32 progression, video::IVideoDriver *driver, u8 tiles=1) |
static void | brighten (video::IImage *image) |
static u32 | parseImageTransform (std::string_view s) |
static core::dimension2du | imageTransformDimension (u32 transform, core::dimension2du dim) |
static void | imageTransform (u32 transform, video::IImage *src, video::IImage *dst) |
static void | applyShadeFactor (video::SColor &color, u32 factor) |
static video::IImage * | createInventoryCubeImage (video::IImage *top, video::IImage *left, video::IImage *right) |
static std::string | unescape_string (std::string_view str, const char esc='\\') |
static void | upscaleImagesToMatchLargest (video::IImage *&img1, video::IImage *&img2) |
static void | blitBaseImage (video::IImage *&src, video::IImage *&dst) |
static video::IImage * | create_crack_image (video::IImage *crack, s32 frame_index, core::dimension2d< u32 > size, u8 tiles, video::IVideoDriver *driver) |
#define CHECK_BASEIMG | ( | ) |
Referenced by ImageSource::generateImagePart().
#define CHECK_DIM | ( | w, | |
h ) |
Referenced by ImageSource::generateImagePart().
#define COMPLAIN_INVALID | ( | description | ) |
Referenced by ImageSource::generateImagePart().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
|
static |
Draw an image on top of another one with gamma-incorrect alpha compositing.
This exists because IImage::copyToWithAlpha() doesn't seem to always work.
overlay | If enabled, only modify pixels in dst which are fully opaque. Defaults to false. |
src | Top image. This image must have the ECF_A8R8G8B8 color format. |
dst | Bottom image. The top image is drawn onto this base image in-place. |
dst_pos | An offset vector to move src before drawing it onto dst |
size | Size limit of the copied area |
References RenderingEngine::get_video_driver(), and sanity_check.
Referenced by blitBaseImage(), draw_crack(), ImageSource::generateImage(), and ImageSource::generateImagePart().
|
static |
References blit_with_alpha(), and upscaleImagesToMatchLargest().
Referenced by ImageSource::generateImagePart().
|
static |
|
static |
|
static |
References applyShadeFactor(), RenderingEngine::get_video_driver(), npot2(), sanity_check, x, and y.
Referenced by ImageSource::generateImagePart().
|
static |
References blit_with_alpha(), and create_crack_image().
Referenced by ImageSource::generateImagePart().
|
static |
References imageTransformDimension().
Referenced by ImageSource::generateImagePart().
|
static |
Referenced by ImageSource::generateImagePart(), and imageTransform().
|
static |
References lowercase().
Referenced by ImageSource::generateImagePart().
|
static |
Referenced by Hud::drawLuaElements(), ImageSource::generateImagePart(), GUIFormSpecMenu::parseAnimatedImage(), GUIFormSpecMenu::parseBackground(), GUIFormSpecMenu::parseButton(), GUIFormSpecMenu::parseCheckbox(), GUIFormSpecMenu::parseDropDown(), GUIFormSpecMenu::parseHyperText(), GUIFormSpecMenu::parseImage(), GUIFormSpecMenu::parseImageButton(), GUIFormSpecMenu::parseItemImageButton(), GUIFormSpecMenu::parseLabel(), GUIFormSpecMenu::parseModel(), GUIFormSpecMenu::parsePwdField(), GUIFormSpecMenu::parseSimpleField(), GUIFormSpecMenu::parseStyle(), GUIFormSpecMenu::parseTabHeader(), GUIFormSpecMenu::parseTable(), GUIFormSpecMenu::parseTableColumns(), GUIFormSpecMenu::parseTableOptions(), GUIFormSpecMenu::parseTextArea(), GUIFormSpecMenu::parseTextList(), GUIFormSpecMenu::parseTooltip(), and GUIFormSpecMenu::parseVertLabel().
|
static |
References RenderingEngine::get_video_driver().
Referenced by blitBaseImage(), and ImageSource::generateImagePart().