|
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) |
|
void | brighten (video::IImage *image) |
|
u32 | parseImageTransform (std::string_view s) |
|
core::dimension2d< u32 > | imageTransformDimension (u32 transform, core::dimension2d< u32 > dim) |
|
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 (const std::string &str, const char esc='\\') |
|
void | upscaleImagesToMatchLargest (video::IImage *&img1, video::IImage *&img2) |
|
void | blitBaseImage (video::IImage *&src, video::IImage *&dst) |
|
template<bool overlay> |
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.
|
|
video::IImage * | create_crack_image (video::IImage *crack, s32 frame_index, core::dimension2d< u32 > size, u8 tiles, video::IVideoDriver *driver) |
|
template<bool overlay = false>
static void blit_with_alpha |
( |
video::IImage * | src, |
|
|
video::IImage * | dst, |
|
|
v2s32 | dst_pos, |
|
|
v2u32 | size ) |
|
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.
- Template Parameters
-
overlay | If enabled, only modify pixels in dst which are fully opaque. Defaults to false. |
- Parameters
-
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().
Referenced by blitBaseImage(), draw_crack(), ImageSource::generateImage(), and ImageSource::generateImagePart().
template<bool overlay>
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.
This exists because IImage::copyToWithAlpha() doesn't seem to always work.
- Template Parameters
-
overlay | If enabled, only modify pixels in dst which are fully opaque. Defaults to false. |
- Parameters
-
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().
Referenced by blitBaseImage(), draw_crack(), ImageSource::generateImage(), and ImageSource::generateImagePart().